Class Archaius1AmazonInfoConfig

    • Constructor Detail

      • Archaius1AmazonInfoConfig

        public Archaius1AmazonInfoConfig​(java.lang.String namespace)
    • Method Detail

      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface AmazonInfoConfig
        Returns:
        the config namespace
      • shouldLogAmazonMetadataErrors

        public boolean shouldLogAmazonMetadataErrors()
        Specified by:
        shouldLogAmazonMetadataErrors in interface AmazonInfoConfig
        Returns:
        whether errors reading from the ec2 metadata url should be logged
      • getReadTimeout

        public int getReadTimeout()
        Specified by:
        getReadTimeout in interface AmazonInfoConfig
        Returns:
        the read timeout when connecting to the metadata url
      • getConnectTimeout

        public int getConnectTimeout()
        Specified by:
        getConnectTimeout in interface AmazonInfoConfig
        Returns:
        the connect timeout when connecting to the metadata url
      • getNumRetries

        public int getNumRetries()
        Specified by:
        getNumRetries in interface AmazonInfoConfig
        Returns:
        the number of retries when unable to read a value from the metadata url
      • shouldValidateInstanceId

        public boolean shouldValidateInstanceId()
        Description copied from interface: AmazonInfoConfig
        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.
        Specified by:
        shouldValidateInstanceId in interface AmazonInfoConfig
        Returns:
        whether to progress with AmazonInfo construction if the instanceId cannot be validated.