Package io.atomix.cluster
Class NodeConfig
java.lang.Object
io.atomix.cluster.NodeConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config
- Direct Known Subclasses:
MemberConfig
public class NodeConfig extends Object implements io.atomix.utils.config.Config
Node configuration.
-
Constructor Summary
Constructors Constructor Description NodeConfig() -
Method Summary
Modifier and Type Method Description io.atomix.utils.net.AddressgetAddress()Returns the node address.StringgetHost()Returns the node hostname.NodeIdgetId()Returns the node identifier.intgetPort()Returns the node port.NodeConfigsetAddress(io.atomix.utils.net.Address address)Deprecated.NodeConfigsetAddress(String address)Deprecated.NodeConfigsetHost(String host)Sets the node hostname.NodeConfigsetId(NodeId id)Sets the node identifier.NodeConfigsetId(String id)Sets the node identifier.NodeConfigsetPort(int port)Sets the node port.
-
Constructor Details
-
NodeConfig
public NodeConfig()
-
-
Method Details
-
getId
Returns the node identifier.- Returns:
- the node identifier
-
setId
Sets the node identifier.- Parameters:
id- the node identifier- Returns:
- the node configuration
-
setId
Sets the node identifier.- Parameters:
id- the node identifier- Returns:
- the node configuration
-
getHost
Returns the node hostname.- Returns:
- the node hostname
-
setHost
Sets the node hostname.- Parameters:
host- the node hostname- Returns:
- the node configuration
-
getPort
public int getPort()Returns the node port.- Returns:
- the node port
-
setPort
Sets the node port.- Parameters:
port- the node port- Returns:
- the node configuration
-
getAddress
public io.atomix.utils.net.Address getAddress()Returns the node address.- Returns:
- the node address
-
setAddress
Deprecated.Sets the node address.- Parameters:
address- the node address- Returns:
- the node configuration
-
setAddress
Deprecated.Sets the node address.- Parameters:
address- the node address- Returns:
- the node configuration
-