NodeIdentity

@Serializable
data class NodeIdentity(val nodeId: String, val hostId: String)(source)

Address pair that uniquely identifies a node in a multi-server Krill swarm.

Used inside TargetingNodeMetaData.sources / TargetingNodeMetaData.targets so callers never have to parse a "host:id" string back into its components.

@Serializable because the type rides inside polymorphic node payloads and is reflected back to clients verbatim.

Constructors

Link copied to clipboard
constructor(nodeId: String, hostId: String)

Properties

Link copied to clipboard

The UUID of the Krill server (host) that owns the node.

Link copied to clipboard

The target node's own UUID, unique within its hostId server.

Functions

Link copied to clipboard
open override fun toString(): String

Renders the identity as "<hostId>:<nodeId>" — the format used in log lines, error messages, and the details() extension on Node.