Class NodeEntry
java.lang.Object
io.micronaut.discovery.consul.client.v1.NodeEntry
- Direct Known Subclasses:
CatalogEntry
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondatacenter
(String datacenter) See https://www.consul.io/api/catalog.html#address.See https://www.consul.io/api/catalog.html#datacenter.getNode()
See https://www.consul.io/api/catalog.html#node.See https://www.consul.io/api/catalog.html#nodemeta.See https://www.consul.io/api/catalog.html#taggedaddresses.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.taggedAddresses
(Map<String, String> taggedAddresses)
-
Constructor Details
-
NodeEntry
Create a new catalog entry.- Parameters:
nodeId
- The node IDaddress
- The node address
-
-
Method Details
-
getTaggedAddresses
See https://www.consul.io/api/catalog.html#taggedaddresses.- Returns:
- The tagged addresses
-
setTaggedAddresses
See https://www.consul.io/api/catalog.html#taggedaddresses.- Parameters:
taggedAddresses
- The tagged addresses
-
getNodeMetadata
See https://www.consul.io/api/catalog.html#nodemeta.- Returns:
- The node metadata
-
nodeMetadata
- Parameters:
nodeMetadata
- The node metadata- Returns:
- The
NodeEntry
instance
-
setNodeMetadata
See https://www.consul.io/api/catalog.html#nodemeta.- Parameters:
nodeMetadata
- The node metadata
-
getNode
See https://www.consul.io/api/catalog.html#node.- Returns:
- The node ID
-
getAddress
See https://www.consul.io/api/catalog.html#address.- Returns:
- The node address
-
getDatacenter
See https://www.consul.io/api/catalog.html#datacenter.- Returns:
- The data center to use
-
setDatacenter
See https://www.consul.io/api/catalog.html#datacenter.- Parameters:
datacenter
- The data center to use
-
datacenter
- Parameters:
datacenter
- The datacenter- Returns:
- The
NodeEntry
instance
-
taggedAddresses
- Parameters:
taggedAddresses
- The tagged addresses- Returns:
- The
NodeEntry
instance
-