public abstract class DiscoveryNode extends Object
DiscoveryStrategy
vendors can retrieve and assign an additional external (or public) IP
address of the node for clients to connect against.
Public addresses, if not necessary, can either be returned as null or
may return the same address instance as the private one and will be
handled internally the same way.
The properties will be used to store any kind of tags or other metadata
available for the node inside of the cloud environment. If a
NodeFilter
is configured, these
properties might be used for further refinement of the discovered nodes
based on whatever the filter decides.
This class is implemented as an abstract class to offer easy extensibility
in later versions of the SPI. Since Java only offers forward evolution of
interfaces starting with Java 8, this is the best option.Constructor and Description |
---|
DiscoveryNode() |
Modifier and Type | Method and Description |
---|---|
abstract Address |
getPrivateAddress()
Returns the private address of the discovered node.
|
abstract Map<String,Object> |
getProperties()
Returns a set of unmodifiable properties that are assigned to the discovered node.
|
abstract Address |
getPublicAddress()
Returns the public address of the discovered node if available.
|
public abstract Address getPrivateAddress()
public abstract Address getPublicAddress()
getPrivateAddress()
.getPrivateAddress()
public abstract Map<String,Object> getProperties()
NodeFilter
API.Copyright © 2018 Hazelcast, Inc.. All rights reserved.