public class NodeConfig extends java.lang.Object implements Config
| Constructor and Description |
|---|
NodeConfig() |
| Modifier and Type | Method and Description |
|---|---|
Address |
getAddress()
Returns the node address.
|
java.lang.String |
getHost()
Returns the node hostname.
|
NodeId |
getId()
Returns the node identifier.
|
int |
getPort()
Returns the node port.
|
NodeConfig |
setAddress(Address address)
Deprecated.
|
NodeConfig |
setAddress(java.lang.String address)
Deprecated.
|
NodeConfig |
setHost(java.lang.String host)
Sets the node hostname.
|
NodeConfig |
setId(NodeId id)
Sets the node identifier.
|
NodeConfig |
setId(java.lang.String id)
Sets the node identifier.
|
NodeConfig |
setPort(int port)
Sets the node port.
|
public NodeId getId()
public NodeConfig setId(java.lang.String id)
id - the node identifierpublic NodeConfig setId(NodeId id)
id - the node identifierpublic java.lang.String getHost()
public NodeConfig setHost(java.lang.String host)
host - the node hostnamepublic int getPort()
public NodeConfig setPort(int port)
port - the node portpublic Address getAddress()
@Deprecated public NodeConfig setAddress(java.lang.String address)
address - the node address@Deprecated public NodeConfig setAddress(Address address)
address - the node addressCopyright © 2013-2018. All Rights Reserved.