public abstract class DiscoveryNode extends Object
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
|Modifier and Type
|Method and Description
Returns the private address of the discovered node.
Returns a set of unmodifiable properties that are assigned to the discovered node.
Returns the public address of the discovered node if available.
public abstract Address getPrivateAddress()
public abstract Address getPublicAddress()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.