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 AmazonInfoConfig
public boolean shouldLogAmazonMetadataErrors()
shouldLogAmazonMetadataErrors
in interface AmazonInfoConfig
public int getReadTimeout()
getReadTimeout
in interface AmazonInfoConfig
public int getConnectTimeout()
getConnectTimeout
in interface AmazonInfoConfig
public int getNumRetries()
getNumRetries
in interface AmazonInfoConfig
public boolean shouldFailFastOnFirstLoad()
AmazonInfoConfig
AmazonInfo.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 AmazonInfoConfig
public boolean shouldValidateInstanceId()
AmazonInfoConfig
shouldValidateInstanceId
in interface AmazonInfoConfig