public class Archaius1AmazonInfoConfig extends java.lang.Object implements AmazonInfoConfig
| Constructor and Description |
|---|
Archaius1AmazonInfoConfig(java.lang.String namespace) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout() |
java.lang.String |
getNamespace() |
int |
getNumRetries() |
int |
getReadTimeout() |
boolean |
shouldFailFastOnFirstLoad()
When creating an AmazonInfo via
AmazonInfo.Builder.autoBuild(String),
a fail fast mechanism exist based on the below configuration. |
boolean |
shouldLogAmazonMetadataErrors() |
boolean |
shouldValidateInstanceId()
When AmazonInfo is specified, setting this to false allows progress on building the AmazonInfo even if
the instanceId of the environment is not able to be validated.
|
public Archaius1AmazonInfoConfig(java.lang.String namespace)
public java.lang.String getNamespace()
getNamespace in interface AmazonInfoConfigpublic boolean shouldLogAmazonMetadataErrors()
shouldLogAmazonMetadataErrors in interface AmazonInfoConfigpublic int getReadTimeout()
getReadTimeout in interface AmazonInfoConfigpublic int getConnectTimeout()
getConnectTimeout in interface AmazonInfoConfigpublic int getNumRetries()
getNumRetries in interface AmazonInfoConfigpublic boolean shouldFailFastOnFirstLoad()
AmazonInfoConfigAmazonInfo.Builder.autoBuild(String),
a fail fast mechanism exist based on the below configuration.
If enabled (default to true), the AmazonInfo.Builder.autoBuild(String)
method will exit early after failing to load the value for the first metadata key (instanceId),
after the expected number of retries as defined by AmazonInfoConfig.getNumRetries().shouldFailFastOnFirstLoad in interface AmazonInfoConfigpublic boolean shouldValidateInstanceId()
AmazonInfoConfigshouldValidateInstanceId in interface AmazonInfoConfig