@Introspected public class NodeEntry extends Object
| Constructor and Description |
|---|
NodeEntry(String nodeId,
InetAddress address)
Create a new catalog entry.
|
| Modifier and Type | Method and Description |
|---|---|
NodeEntry |
datacenter(String datacenter) |
InetAddress |
getAddress()
See https://www.consul.io/api/catalog.html#address.
|
Optional<String> |
getDatacenter()
See https://www.consul.io/api/catalog.html#datacenter.
|
String |
getNode()
See https://www.consul.io/api/catalog.html#node.
|
Map<String,String> |
getNodeMetadata()
See https://www.consul.io/api/catalog.html#nodemeta.
|
Map<String,String> |
getTaggedAddresses()
See https://www.consul.io/api/catalog.html#taggedaddresses.
|
NodeEntry |
nodeMetadata(Map<String,String> nodeMetadata) |
void |
setDatacenter(String datacenter)
See https://www.consul.io/api/catalog.html#datacenter.
|
void |
setNodeMetadata(Map<String,String> nodeMetadata)
See https://www.consul.io/api/catalog.html#nodemeta.
|
void |
setTaggedAddresses(Map<String,String> taggedAddresses)
See https://www.consul.io/api/catalog.html#taggedaddresses.
|
NodeEntry |
taggedAddresses(Map<String,String> taggedAddresses) |
public NodeEntry(String nodeId, InetAddress address)
nodeId - The node IDaddress - The node addresspublic Map<String,String> getTaggedAddresses()
public void setTaggedAddresses(Map<String,String> taggedAddresses)
taggedAddresses - The tagged addressespublic Map<String,String> getNodeMetadata()
public NodeEntry nodeMetadata(Map<String,String> nodeMetadata)
nodeMetadata - The node metadataNodeEntry instancepublic void setNodeMetadata(Map<String,String> nodeMetadata)
nodeMetadata - The node metadatapublic String getNode()
public InetAddress getAddress()
public Optional<String> getDatacenter()
public void setDatacenter(String datacenter)
datacenter - The data center to usepublic NodeEntry datacenter(String datacenter)
datacenter - The datacenterNodeEntry instance