Package io.atomix.cluster
Class MemberBuilder
java.lang.Object
io.atomix.cluster.NodeBuilder
io.atomix.cluster.MemberBuilder
Member builder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withAddress(Address address) Sets the member address.Sets the node host.withHostId(String hostId) Sets the host to which the member belongs.Sets the member identifier.Sets the node identifier.Sets the node identifier.withPort(int port) Sets the node port.withProperties(Properties properties) Sets the member properties.withRackId(String rack) Sets the rack to which the member belongs.withZoneId(String zoneId) Sets the zone to which the member belongs.
-
Field Details
-
config
-
-
Constructor Details
-
MemberBuilder
-
-
Method Details
-
withId
Description copied from class:NodeBuilderSets the node identifier.- Overrides:
withIdin classNodeBuilder- Parameters:
id- the node identifier- Returns:
- the node builder
-
withId
Description copied from class:NodeBuilderSets the node identifier.- Overrides:
withIdin classNodeBuilder- Parameters:
id- the node identifier- Returns:
- the node builder
-
withHost
Description copied from class:NodeBuilderSets the node host.- Overrides:
withHostin classNodeBuilder- Parameters:
host- the node host- Returns:
- the node builder
-
withPort
Description copied from class:NodeBuilderSets the node port.- Overrides:
withPortin classNodeBuilder- Parameters:
port- the node port- Returns:
- the node builder
-
withAddress
Sets the member address.- Overrides:
withAddressin classNodeBuilder- Parameters:
address- the member address- Returns:
- the member builder
-
build
- Specified by:
buildin interfaceBuilder<Node>- Overrides:
buildin classNodeBuilder
-
withId
Sets the member identifier.- Parameters:
id- the member identifier- Returns:
- the member builder
-
withZoneId
Sets the zone to which the member belongs.- Parameters:
zoneId- the zone to which the member belongs- Returns:
- the member builder
-
withRackId
Sets the rack to which the member belongs.- Parameters:
rack- the rack to which the member belongs- Returns:
- the member builder
-
withHostId
Sets the host to which the member belongs.- Parameters:
hostId- the host to which the member belongs- Returns:
- the member builder
-
withProperties
Sets the member properties.- Parameters:
properties- the member properties- Returns:
- the member builder
- Throws:
NullPointerException- if the properties are null
-