Package io.atomix.cluster
Class NodeConfig
java.lang.Object
io.atomix.cluster.NodeConfig
- All Implemented Interfaces:
Config
- Direct Known Subclasses:
MemberConfig
Node configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the node address.getHost()Returns the node hostname.getId()Returns the node identifier.intgetPort()Returns the node port.setAddress(Address address) Sets the node address.Sets the node hostname.Sets the node identifier.Sets the node identifier.setPort(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
Returns the node address.- Returns:
- the node address
-
setAddress
Sets the node address.- Parameters:
address- the node address- Returns:
- the node configuration
-