@Extension @Symbol(value="aws-kinesis-consumer") public class GlobalKinesisConfiguration extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfExtensionPoint.LegacyInstancesAreScopedToHudsonclazz| Constructor and Description |
|---|
GlobalKinesisConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
FormValidation |
doCheckApplicationName(String value)
Checks applicationName is valid
|
FormValidation |
doCheckInitialPositionInStream(String value)
Checks AWS Kinesis initial stream position is valid.
|
FormValidation |
doCheckLocalEndpoint(String value)
Checks local endpoint URL is valid.
|
FormValidation |
doCheckRegion(String value)
Checks AWS region is valid.
|
static GlobalKinesisConfiguration |
get()
Get the GlobalKinesisConfiguration
|
String |
getApplicationName()
Get the application name from the configuration page
|
List<KinesisStreamItem> |
getKinesisStreamItems() |
KinesisStreamItem |
getKinesisStreamItemsForStream(String streamName) |
String |
getLocalEndpoint()
Get the local endpoint to consume from rather than the AWS service
|
String |
getRegion()
Get the AWS Region to connect to from the configuration page
|
Integer |
getShutdownTimeoutMs()
Get the maximum total time (milliseconds) waiting when shutting down kinesis consumers.
|
boolean |
isKinesisConsumerEnabled()
Indicates if the plugin is enabled or not
|
void |
setApplicationName(String applicationNameString)
Set application name when loading the global configuration page This name identifies the
application, which must have a unique name that is scoped to the Amazon account and Region used
by the application.
|
void |
setKinesisConsumerEnabled(boolean kinesisConsumerEnabled)
Set the enabled/disabled status of the plugin when loading the global configuration page
|
void |
setKinesisStreamItems(List<KinesisStreamItem> kinesisStreamItems)
Set KinesisStreamItem values when loading the global configuration page
|
void |
setLocalEndpoint(String localEndpoint)
Set an optional endpoint to point to a local kinesis stack rather than the AWS service.
|
void |
setRegion(String regionString)
Set AWS Region when loading the global configuration page
|
void |
setShutdownTimeoutMs(Integer timeoutMs)
Set the maximum total time (milliseconds) waiting when shutting down kinesis consumers.
|
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@DataBoundSetter public void setRegion(String regionString)
regionString - AWS Region to connect to. This parameter is optional. If set it will
override any Region set in the Region Provider Chain.@DataBoundSetter public void setShutdownTimeoutMs(Integer timeoutMs)
timeoutMs - timeout in milliseconds@DataBoundSetter public void setApplicationName(String applicationNameString)
applicationNameString - the name of this application@DataBoundSetter public void setKinesisConsumerEnabled(boolean kinesisConsumerEnabled)
kinesisConsumerEnabled - enabled/disabled status@DataBoundSetter public void setKinesisStreamItems(List<KinesisStreamItem> kinesisStreamItems)
kinesisStreamItems - KinesisStreamItem to set@DataBoundSetter public void setLocalEndpoint(String localEndpoint)
localEndpoint - the local endpoint URL, i.e. http://localhost:4566public static GlobalKinesisConfiguration get()
public boolean isKinesisConsumerEnabled()
public String getRegion()
public String getApplicationName()
public Integer getShutdownTimeoutMs()
public List<KinesisStreamItem> getKinesisStreamItems()
public String getLocalEndpoint()
public FormValidation doCheckLocalEndpoint(@QueryParameter String value)
value - the URL.public FormValidation doCheckRegion(@QueryParameter String value)
value - the region.public FormValidation doCheckApplicationName(@QueryParameter String value)
value - the application namepublic FormValidation doCheckInitialPositionInStream(@QueryParameter String value)
value - the initial position in the stream. Valid values: LATEST, TRIM_HORIZONpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
configure in class GlobalConfigurationreq - StaplerRequest submitted when saving the configuration pagejson - JSON containing the configuration parameters setpublic KinesisStreamItem getKinesisStreamItemsForStream(String streamName)
Copyright © 2016–2021. All rights reserved.