Package io.atomix.cluster
Class MemberConfig
java.lang.Object
io.atomix.cluster.NodeConfig
io.atomix.cluster.MemberConfig
- All Implemented Interfaces:
Config
Member configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the member host.getId()Returns the member identifier.Returns the member properties.Returns the member rack.Returns the member zone.setAddress(Address address) Sets the node address.Sets the node hostname.Sets the member host.Sets the member identifier.Sets the node identifier.Sets the member identifier.setPort(int port) Sets the node port.setProperties(Map<String, String> map) Sets the member properties.setProperties(Properties properties) Sets the member properties.Sets the member rack.Sets the member zone.Methods inherited from class io.atomix.cluster.NodeConfig
getAddress, getHost, getPort
-
Constructor Details
-
MemberConfig
public MemberConfig()
-
-
Method Details
-
getId
Returns the member identifier.- Overrides:
getIdin classNodeConfig- Returns:
- the member identifier
-
setId
Sets the member identifier.- Overrides:
setIdin classNodeConfig- Parameters:
id- the member identifier- Returns:
- the member configuration
-
setId
Description copied from class:NodeConfigSets the node identifier.- Overrides:
setIdin classNodeConfig- Parameters:
id- the node identifier- Returns:
- the node configuration
-
setId
Sets the member identifier.- Parameters:
id- the member identifier- Returns:
- the member configuration
-
setHost
Description copied from class:NodeConfigSets the node hostname.- Overrides:
setHostin classNodeConfig- Parameters:
host- the node hostname- Returns:
- the node configuration
-
setPort
Description copied from class:NodeConfigSets the node port.- Overrides:
setPortin classNodeConfig- Parameters:
port- the node port- Returns:
- the node configuration
-
setAddress
Description copied from class:NodeConfigSets the node address.- Overrides:
setAddressin classNodeConfig- Parameters:
address- the node address- Returns:
- the node configuration
-
getZoneId
Returns the member zone.- Returns:
- the member zone
-
setZoneId
Sets the member zone.- Parameters:
zoneId- the member zone- Returns:
- the member configuration
-
getRackId
Returns the member rack.- Returns:
- the member rack
-
setRackId
Sets the member rack.- Parameters:
rackId- the member rack- Returns:
- the member configuration
-
getHostId
Returns the member host.- Returns:
- the member host
-
setHostId
Sets the member host.- Parameters:
hostId- the member host- Returns:
- the member configuration
-
getProperties
Returns the member properties.- Returns:
- the member properties
-
setProperties
Sets the member properties.- Parameters:
map- the member properties- Returns:
- the member configuration
-
setProperties
Sets the member properties.- Parameters:
properties- the member properties- Returns:
- the member configuration
-