Class BowireTopologyNode
- Namespace
- Kuestenlogik.Bowire.Topology
- Assembly
- Kuestenlogik.Bowire.dll
A node of a BowireTopology.
public sealed record BowireTopologyNode : IEquatable<BowireTopologyNode>
- Inheritance
-
BowireTopologyNode
- Implements
- Inherited Members
Constructors
BowireTopologyNode(string, string?, string?, IReadOnlyList<string>?, string?, IReadOnlyList<BowireTopologyAction>?)
A node of a BowireTopology.
public BowireTopologyNode(string Id, string? Label = null, string? Status = "up", IReadOnlyList<string>? Roles = null, string? Detail = null, IReadOnlyList<BowireTopologyAction>? Actions = null)
Parameters
IdstringWhat names the node across frames: an address, a broker id.
LabelstringWhat to show for it, when not the id.
StatusstringIts state, in the protocol's own words. The view knows the common ones (BowireTopologyStatus, Akka's member states, Kafka's) and shows any other as it is.
RolesIReadOnlyList<string>Roles or tags shown beside it:
leader,controller, a cluster role.DetailstringOne line more, shown when the node is picked: a version, an uptime.
ActionsIReadOnlyList<BowireTopologyAction>The plugin's calls scoped to this node, offered when the node is picked.
Properties
Actions
The plugin's calls scoped to this node, offered when the node is picked.
public IReadOnlyList<BowireTopologyAction>? Actions { get; init; }
Property Value
Detail
One line more, shown when the node is picked: a version, an uptime.
public string? Detail { get; init; }
Property Value
Id
What names the node across frames: an address, a broker id.
public string Id { get; init; }
Property Value
Label
What to show for it, when not the id.
public string? Label { get; init; }
Property Value
Roles
Roles or tags shown beside it: leader, controller, a cluster role.
public IReadOnlyList<string>? Roles { get; init; }
Property Value
Status
Its state, in the protocol's own words. The view knows the common ones (BowireTopologyStatus, Akka's member states, Kafka's) and shows any other as it is.
public string? Status { get; init; }
Property Value
Methods
Deconstruct(out string, out string?, out string?, out IReadOnlyList<string>?, out string?, out IReadOnlyList<BowireTopologyAction>?)
public void Deconstruct(out string Id, out string? Label, out string? Status, out IReadOnlyList<string>? Roles, out string? Detail, out IReadOnlyList<BowireTopologyAction>? Actions)
Parameters
IdstringLabelstringStatusstringRolesIReadOnlyList<string>DetailstringActionsIReadOnlyList<BowireTopologyAction>
Equals(BowireTopologyNode?)
public bool Equals(BowireTopologyNode? other)
Parameters
otherBowireTopologyNode
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireTopologyNode?, BowireTopologyNode?)
public static bool operator ==(BowireTopologyNode? left, BowireTopologyNode? right)
Parameters
leftBowireTopologyNoderightBowireTopologyNode
Returns
operator !=(BowireTopologyNode?, BowireTopologyNode?)
public static bool operator !=(BowireTopologyNode? left, BowireTopologyNode? right)
Parameters
leftBowireTopologyNoderightBowireTopologyNode