Package io.atomix.cluster
Class MemberConfig
java.lang.Object
io.atomix.cluster.NodeConfig
io.atomix.cluster.MemberConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config
public class MemberConfig extends NodeConfig
Member configuration.
-
Constructor Summary
Constructors Constructor Description MemberConfig() -
Method Summary
Modifier and Type Method Description StringgetHostId()Returns the member host.MemberIdgetId()Returns the member identifier.PropertiesgetProperties()Returns the member properties.StringgetRackId()Returns the member rack.StringgetZoneId()Returns the member zone.MemberConfigsetAddress(io.atomix.utils.net.Address address)Sets the node address.MemberConfigsetAddress(String address)Sets the node address.MemberConfigsetHost(String host)Sets the node hostname.MemberConfigsetHostId(String hostId)Sets the member host.MemberConfigsetId(MemberId id)Sets the member identifier.MemberConfigsetId(NodeId id)Sets the node identifier.MemberConfigsetId(String id)Sets the member identifier.MemberConfigsetPort(int port)Sets the node port.MemberConfigsetProperties(Map<String,String> map)Sets the member properties.MemberConfigsetProperties(Properties properties)Sets the member properties.MemberConfigsetProperty(String key, String value)Sets a member property.MemberConfigsetRack(String rack)Sets the member rack.MemberConfigsetRackId(String rackId)Sets the member rack.MemberConfigsetZone(String zone)Sets the member zone.MemberConfigsetZoneId(String zoneId)Sets the member zone.
-
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
-
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
-
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
-
setZone
Sets the member zone.- Parameters:
zone- 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
-
setRack
Sets the member rack.- Parameters:
rack- 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
-
setHost
Description copied from class:NodeConfigSets the node hostname.- Overrides:
setHostin classNodeConfig- Parameters:
host- the node hostname- Returns:
- the node 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
-
setProperty
Sets a member property.- Parameters:
key- the property key to etvalue- the property value to et- Returns:
- the member configuration
-