Class CatalogEntry
java.lang.Object
io.micronaut.discovery.consul.client.v1.NodeEntry
io.micronaut.discovery.consul.client.v1.CatalogEntry
Deprecated, for removal: This API element is subject to removal in a future version.
A catalog entry in Consul. See https://www.consul.io/api/catalog.html.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionCatalogEntry
(String nodeId, InetAddress address) Deprecated, for removal: This API element is subject to removal in a future version.Create a new catalog entry. -
Method Summary
Modifier and TypeMethodDescriptiondatacenter
(String datacenter) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/catalog.html#service.nodeMetadata
(Map<String, String> nodeMetadata) Deprecated, for removal: This API element is subject to removal in a future version.service
(NewServiceEntry service) Deprecated, for removal: This API element is subject to removal in a future version.void
setService
(NewServiceEntry service) Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/catalog.html#service.taggedAddresses
(Map<String, String> taggedAddresses) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.micronaut.discovery.consul.client.v1.NodeEntry
getAddress, getDatacenter, getNode, getNodeMetadata, getTaggedAddresses, setDatacenter, setNodeMetadata, setTaggedAddresses
-
Constructor Details
-
CatalogEntry
Deprecated, for removal: This API element is subject to removal in a future version.Create a new catalog entry.- Parameters:
nodeId
- The node IDaddress
- The node address
-
-
Method Details
-
datacenter
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
datacenter
in classNodeEntry
- Parameters:
datacenter
- The datacenter- Returns:
- The
NodeEntry
instance
-
taggedAddresses
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
taggedAddresses
in classNodeEntry
- Parameters:
taggedAddresses
- The tagged addresses- Returns:
- The
NodeEntry
instance
-
nodeMetadata
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
nodeMetadata
in classNodeEntry
- Parameters:
nodeMetadata
- The node metadata- Returns:
- The
NodeEntry
instance
-
getService
Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/catalog.html#service.- Returns:
- The service
-
setService
Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/catalog.html#service.- Parameters:
service
- The service
-
service
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
service
- The service- Returns:
- The
CatalogEntry
instance
-
ConsulCatalogEntry
instead.