Node Builder
Mutable builder for a single Node.
Usage:
val node = NodeBuilder()
.type(KrillApp.Server.Pin)
.host(serverId)
.parent(serverId)
.meta(PinMetaData(name = "fan"))
.create()Content copied to clipboard
id is auto-generated as a random UUID when omitted; on a Server-typed node, parent auto-fills to id because top-level servers are their own parents in the swarm graph.
Properties
Functions
Link copied to clipboard
Builds the Node.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Seeds the builder from an existing Node — useful when callers want to alter only one or two fields and round-trip the rest.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard