public class Node extends Object
Constructor and Description |
---|
Node()
Default constructor
|
Node(JsonObject json)
Constructor from JSON
|
Node(Node other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAddress()
Get node address
|
String |
getDatacenter()
Get node datacenter
|
String |
getId()
Get node id
|
String |
getLanAddress()
Get node lan address
|
String |
getName()
Get node name
|
Map<String,String> |
getNodeMeta()
Get node meta
|
String |
getWanAddress()
Get node wan address
|
int |
hashCode() |
Node |
setAddress(String address)
Set node address
|
Node |
setDatacenter(String datacenter)
Set node datacenter
|
Node |
setId(String id)
Set node id
|
Node |
setLanAddress(String lanAddress)
Set node lan address
|
Node |
setName(String node)
Set node name
|
Node |
setNodeMeta(Map<String,String> nodeMeta)
Set node meta
|
Node |
setWanAddress(String wanAddress)
Set node wan address
|
JsonObject |
toJson()
Convert to JSON
|
public Node()
public Node(Node other)
other
- the one to copypublic Node(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public String getId()
public String getName()
public String getAddress()
public String getLanAddress()
public String getWanAddress()
public String getDatacenter()
public Node setId(String id)
id
- node idpublic Node setName(String node)
node
- node namepublic Node setAddress(String address)
address
- node addresspublic Node setLanAddress(String lanAddress)
lanAddress
- node lan addresspublic Node setWanAddress(String wanAddress)
wanAddress
- node wan addresspublic Node setDatacenter(String datacenter)
datacenter
- node datacenterpublic Node setNodeMeta(Map<String,String> nodeMeta)
nodeMeta
- node nodeMetaCopyright © 2022 Eclipse. All rights reserved.