public class NodeConfig extends Object implements io.atomix.utils.config.Config
| Constructor and Description |
|---|
NodeConfig() |
| Modifier and Type | Method and Description |
|---|---|
io.atomix.utils.net.Address |
getAddress()
Returns the node address.
|
NodeId |
getId()
Returns the node identifier.
|
NodeConfig |
setAddress(io.atomix.utils.net.Address address)
Sets the node address.
|
NodeConfig |
setAddress(String address)
Sets the node address.
|
NodeConfig |
setId(NodeId id)
Sets the node identifier.
|
NodeConfig |
setId(String id)
Sets the node identifier.
|
public NodeId getId()
public NodeConfig setId(String id)
id - the node identifierpublic NodeConfig setId(NodeId id)
id - the node identifierpublic io.atomix.utils.net.Address getAddress()
public NodeConfig setAddress(String address)
address - the node addresspublic NodeConfig setAddress(io.atomix.utils.net.Address address)
address - the node addressCopyright © 2013–2018. All rights reserved.