PeerMetadataKeys class abstract final

Keys for the node metadata the coordination layer itself reads.

These name entries in Node.metadata / NodeConfig.metadata. They are deliberately distinct from any transport's wire keys — the LSL transport, for instance, publishes the roll as random_roll in stream XML, and PeerDescriptor is the boundary that maps between the two.

Bare string literals here were the cause of a live defect: the skip-election path wrote 'random_roll' into node metadata while every reader looked for 'randomRoll', so the value silently never arrived.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

createdAt → const String
ISO-8601 creation time.
nodeStartedAt → const String
ISO-8601 start time, used by PromotionStrategyFirst. Earliest wins.
randomRoll → const String
Tie-breaker for PromotionStrategyRandom. Lowest roll wins.
role → const String
The node's current role, as NodeCapability.shortString.
type → const String
Comma-joined NodeCapability list.