Class AwsDiscoveryStrategy

    • Method Detail

      • discoverLocalMetadata

        public java.util.Map<java.lang.String,​java.lang.String> discoverLocalMetadata()
        Description copied from interface: DiscoveryStrategy
        Returns a map with discovered metadata provided by the runtime environment. Those information may include, but are not limited, to location information like datacenter, node name or additional tags to be used for custom purpose.

        Information discovered from this method are shaded into the Members attributes. Existing attributes will not be overridden, that way local attribute configuration overrides provided metadata.

        The default implementation provides an empty map with no further metadata configured. Returning null is not permitted and will most probably result in an NullPointerException inside the cluster system.

        Specified by:
        discoverLocalMetadata in interface DiscoveryStrategy
        Overrides:
        discoverLocalMetadata in class AbstractDiscoveryStrategy
        Returns:
        a map of discovered metadata as provided by the runtime environment
      • discoverNodes

        public java.lang.Iterable<DiscoveryNode> discoverNodes()
        Description copied from interface: DiscoveryStrategy
        Returns a set of all discovered nodes based on the defined properties that were used to create the DiscoveryStrategy instance.
        Returns:
        a set of all discovered nodes