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

Id string

What names the node across frames: an address, a broker id.

Label string

What to show for it, when not the id.

Status string

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.

Roles IReadOnlyList<string>

Roles or tags shown beside it: leader, controller, a cluster role.

Detail string

One line more, shown when the node is picked: a version, an uptime.

Actions IReadOnlyList<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

IReadOnlyList<BowireTopologyAction>

Detail

One line more, shown when the node is picked: a version, an uptime.

public string? Detail { get; init; }

Property Value

string

Id

What names the node across frames: an address, a broker id.

public string Id { get; init; }

Property Value

string

Label

What to show for it, when not the id.

public string? Label { get; init; }

Property Value

string

Roles

Roles or tags shown beside it: leader, controller, a cluster role.

public IReadOnlyList<string>? Roles { get; init; }

Property Value

IReadOnlyList<string>

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

string

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

Id string
Label string
Status string
Roles IReadOnlyList<string>
Detail string
Actions IReadOnlyList<BowireTopologyAction>

Equals(BowireTopologyNode?)

public bool Equals(BowireTopologyNode? other)

Parameters

other BowireTopologyNode

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireTopologyNode?, BowireTopologyNode?)

public static bool operator ==(BowireTopologyNode? left, BowireTopologyNode? right)

Parameters

left BowireTopologyNode
right BowireTopologyNode

Returns

bool

operator !=(BowireTopologyNode?, BowireTopologyNode?)

public static bool operator !=(BowireTopologyNode? left, BowireTopologyNode? right)

Parameters

left BowireTopologyNode
right BowireTopologyNode

Returns

bool