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)
Sets the member address using local host.
|
MemberBuilder |
withAddress(java.lang.String address)
Sets the member address.
|
MemberBuilder |
withAddress(java.lang.String host,
int port)
Sets the member host/port.
|
MemberBuilder |
withHost(java.lang.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(java.lang.String id)
Sets the node identifier.
|
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)
Sets the rack to which the member belongs.
|
MemberBuilder |
withZone(java.lang.String zone)
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 withAddress(java.lang.String address)
withAddress in class NodeBuilderaddress - a host:port tupleMalformedAddressException - if a valid Address cannot be constructed from the argumentspublic MemberBuilder withAddress(java.lang.String host, int port)
withAddress in class NodeBuilderhost - the host nameport - the port numberMalformedAddressException - if a valid Address cannot be constructed from the argumentspublic MemberBuilder withAddress(int port)
withAddress 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 withZone(java.lang.String zone)
zone - the zone to which the member belongspublic MemberBuilder withRack(java.lang.String rack)
rack - the rack to which the member belongspublic MemberBuilder withHost(java.lang.String host)
host - 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-2018. All Rights Reserved.