public class GcpDiscoveryStrategy extends AbstractDiscoveryStrategy
DiscoveryStrategy.| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
discoverLocalMetadata()
Returns a map with discovered metadata provided by the runtime environment.
|
Iterable<DiscoveryNode> |
discoverNodes()
Returns a set of all discovered nodes based on the defined properties that were used
to create the
DiscoveryStrategy instance. |
destroy, getLogger, getOrDefault, getOrDefault, getOrNull, getOrNull, getPartitionGroupStrategy, getPartitionGroupStrategy, getProperties, startpublic Map<String,String> discoverLocalMetadata()
DiscoveryStrategy
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.
discoverLocalMetadata in interface DiscoveryStrategydiscoverLocalMetadata in class AbstractDiscoveryStrategypublic Iterable<DiscoveryNode> discoverNodes()
DiscoveryStrategyDiscoveryStrategy instance.Copyright © 2022 Hazelcast, Inc.. All rights reserved.