public class MemberBuilder extends NodeBuilder
| Modifier and Type | Method and Description |
|---|---|
Member |
build() |
MemberBuilder |
withAddress(io.atomix.utils.net.Address address)
Sets the member address.
|
MemberBuilder |
withAddress(int port)
Sets the member address using local host.
|
MemberBuilder |
withAddress(String address)
Sets the member address.
|
MemberBuilder |
withAddress(String host,
int port)
Sets the member host/port.
|
MemberBuilder |
withHost(String host)
Sets the host to which the member belongs.
|
MemberBuilder |
withId(MemberId id)
Sets the member identifier.
|
MemberBuilder |
withId(NodeId id)
Sets the node identifier.
|
MemberBuilder |
withId(String id)
Sets the node identifier.
|
MemberBuilder |
withProperties(Properties properties)
Sets the member properties.
|
MemberBuilder |
withProperty(String key,
String value)
Sets a member property.
|
MemberBuilder |
withRack(String rack)
Sets the rack to which the member belongs.
|
MemberBuilder |
withZone(String zone)
Sets the zone to which the member belongs.
|
public MemberBuilder withId(String id)
NodeBuilderwithId in class NodeBuilderid - the node identifierpublic MemberBuilder withId(NodeId id)
NodeBuilderwithId in class NodeBuilderid - the node identifierpublic MemberBuilder withId(MemberId id)
id - the member identifierpublic MemberBuilder withAddress(String address)
withAddress in class NodeBuilderaddress - a host:port tupleio.atomix.utils.net.MalformedAddressException - if a valid Address cannot be constructed from the argumentspublic MemberBuilder withAddress(String host, int port)
withAddress in class NodeBuilderhost - the host nameport - the port numberio.atomix.utils.net.MalformedAddressException - if a valid Address cannot be constructed from the argumentspublic MemberBuilder withAddress(int port)
withAddress in class NodeBuilderport - the port numberio.atomix.utils.net.MalformedAddressException - if a valid Address cannot be constructed from the argumentspublic MemberBuilder withAddress(io.atomix.utils.net.Address address)
withAddress in class NodeBuilderaddress - the member addresspublic MemberBuilder withZone(String zone)
zone - the zone to which the member belongspublic MemberBuilder withRack(String rack)
rack - the rack to which the member belongspublic MemberBuilder withHost(String host)
host - the host to which the member belongspublic MemberBuilder withProperties(Properties properties)
properties - the member propertiesNullPointerException - if the properties are nullpublic MemberBuilder withProperty(String key, String value)
key - the property key to setvalue - the property value to setNullPointerException - if the property is nullpublic Member build()
build in interface io.atomix.utils.Builder<Node>build in class NodeBuilderCopyright © 2013–2018. All rights reserved.