|
| | node_id ()=default |
| | Creates an empty (invalid) node_id.
|
| auto | id () const -> const std::string & |
| | User-facing identifier string.
|
| auto | node_uuid () const -> const std::string & |
| | The server-assigned node UUID (empty on servers before 8.0.1).
|
| auto | hostname () const -> const std::string & |
| | The hostname of the node.
|
| auto | port () const -> std::uint16_t |
| | The port of the node's key-value service.
|
| | operator bool () const |
| | Returns true when the node_id was properly initialized (not default-constructed).
|
| auto | operator== (const node_id &other) const -> bool |
| auto | operator!= (const node_id &other) const -> bool |
| auto | operator< (const node_id &other) const -> bool |
Uniquely identifies a cluster node.
On Couchbase Server 8.0.1+ the identifier is the server-assigned node UUID. On older releases, a stable opaque token is derived from the node's hostname and management port.
The type is equality-comparable, ordered, and hashable.
- Since
- 1.3.2
- Uncommitted
- Might be changed in the future, and eventually promoted to committed