- All Implemented Interfaces:
public class GcpDiscoveryStrategy extends AbstractDiscoveryStrategy
GCP implementation of
Modifier and Type Method Description
discoverLocalMetadata()Returns a map with discovered metadata provided by the runtime environment.
discoverNodes()Returns a set of all discovered nodes based on the defined properties that were used to create the
Methods inherited from class com.hazelcast.spi.discovery.AbstractDiscoveryStrategy
destroy, getLogger, getOrDefault, getOrDefault, getOrNull, getOrNull, getPartitionGroupStrategy, getProperties, start
discoverLocalMetadataDescription copied from interface:
DiscoveryStrategyReturns a map with discovered metadata provided by the runtime environment. Those information may include, but are not limited, to location information like datacenter, rack, host, 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
nullis not permitted and will most probably result in an
NullPointerExceptioninside the cluster system.
- Specified by:
- a map of discovered metadata as provided by the runtime environment
discoverNodespublic Iterable<DiscoveryNode> discoverNodes()Description copied from interface:
DiscoveryStrategyReturns a set of all discovered nodes based on the defined properties that were used to create the
- a set of all discovered nodes