public class MemberBuilder extends NodeBuilder
| Modifier and Type | Method and Description |
|---|---|
Member |
build() |
MemberBuilder |
withAddress(Address address)
Sets the member address.
|
MemberBuilder |
withAddress(int port)
Deprecated.
since 3.1. Use
withPort(int) instead |
MemberBuilder |
withAddress(java.lang.String address)
Deprecated.
since 3.1. Use
withHost(String) and/or withPort(int) instead |
MemberBuilder |
withAddress(java.lang.String host,
int port)
Deprecated.
since 3.1. Use
withHost(String) and withPort(int) instead |
MemberBuilder |
withHost(java.lang.String host)
Sets the node host.
|
MemberBuilder |
withHostId(java.lang.String hostId)
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(java.lang.String id)
Sets the node identifier.
|
MemberBuilder |
withPort(int port)
Sets the node port.
|
MemberBuilder |
withProperties(java.util.Properties properties)
Sets the member properties.
|
MemberBuilder |
withProperty(java.lang.String key,
java.lang.String value)
Sets a member property.
|
MemberBuilder |
withRack(java.lang.String rack)
Deprecated.
since 3.1. Use
withRackId(String) instead |
MemberBuilder |
withRackId(java.lang.String rack)
Sets the rack to which the member belongs.
|
MemberBuilder |
withZone(java.lang.String zone)
Deprecated.
since 3.1. Use
withZoneId(String) instead |
MemberBuilder |
withZoneId(java.lang.String zoneId)
Sets the zone to which the member belongs.
|
public MemberBuilder withId(java.lang.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 withHost(java.lang.String host)
NodeBuilderwithHost in class NodeBuilderhost - the node hostpublic MemberBuilder withPort(int port)
NodeBuilderwithPort in class NodeBuilderport - the node port@Deprecated public MemberBuilder withAddress(java.lang.String address)
withHost(String) and/or withPort(int) insteadwithAddress in class NodeBuilderaddress - a host:port tupleMalformedAddressException - if a valid Address cannot be constructed from the arguments@Deprecated public MemberBuilder withAddress(java.lang.String host, int port)
withHost(String) and withPort(int) insteadwithAddress in class NodeBuilderhost - the host nameport - the port numberMalformedAddressException - if a valid Address cannot be constructed from the arguments@Deprecated public MemberBuilder withAddress(int port)
withPort(int) insteadwithAddress in class NodeBuilderport - the port numberMalformedAddressException - if a valid Address cannot be constructed from the argumentspublic MemberBuilder withAddress(Address address)
withAddress in class NodeBuilderaddress - the member addresspublic MemberBuilder withZoneId(java.lang.String zoneId)
zoneId - the zone to which the member belongs@Deprecated public MemberBuilder withZone(java.lang.String zone)
withZoneId(String) insteadzone - the zone to which the member belongspublic MemberBuilder withRackId(java.lang.String rack)
rack - the rack to which the member belongs@Deprecated public MemberBuilder withRack(java.lang.String rack)
withRackId(String) insteadrack - the rack to which the member belongspublic MemberBuilder withHostId(java.lang.String hostId)
hostId - the host to which the member belongspublic MemberBuilder withProperties(java.util.Properties properties)
properties - the member propertiesjava.lang.NullPointerException - if the properties are nullpublic MemberBuilder withProperty(java.lang.String key, java.lang.String value)
key - the property key to setvalue - the property value to setjava.lang.NullPointerException - if the property is nullCopyright © 2013-2019. All Rights Reserved.