Class CloudInstanceConfig

    • Constructor Detail

      • CloudInstanceConfig

        public CloudInstanceConfig()
      • CloudInstanceConfig

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

      • getHostName

        public java.lang.String getHostName​(boolean refresh)
        Description copied from interface: EurekaInstanceConfig
        Gets the hostname associated with this instance. This is the exact name that would be used by other instances to make calls.
        Specified by:
        getHostName in interface EurekaInstanceConfig
        Overrides:
        getHostName in class AbstractInstanceConfig
        Parameters:
        refresh - true if the information needs to be refetched, false otherwise.
        Returns:
        hostname of this instance which is identifiable by other instances for making remote calls.
      • getDefaultAddressResolutionOrder

        public java.lang.String[] getDefaultAddressResolutionOrder()
        Description copied from interface: EurekaInstanceConfig
        An instance's network addresses should be fully expressed in it's DataCenterInfo. For example for instances in AWS, this will include the publicHostname, publicIp, privateHostname and privateIp, when available. The InstanceInfo will further express a "default address", which is a field that can be configured by the registering instance to advertise it's default address. This configuration allowed for the expression of an ordered list of fields that can be used to resolve the default address. The exact field values will depend on the implementation details of the corresponding implementing DataCenterInfo types.
        Specified by:
        getDefaultAddressResolutionOrder in interface EurekaInstanceConfig
        Overrides:
        getDefaultAddressResolutionOrder in class PropertiesInstanceConfig
        Returns:
        an ordered list of fields that should be used to preferentially resolve this instance's default address, empty String[] for default.
      • refreshAmazonInfo

        @Deprecated
        public void refreshAmazonInfo()
        Deprecated.
        2016-09-07 Refresh instance info - currently only used when in AWS cloud as a public ip can change whenever an EIP is associated or dissociated.