|
1 | 1 | namespace KeyLoad; |
2 | 2 |
|
3 | | -/// <summary>Reports node identity, replication progress, and readiness.</summary> |
4 | | -/// <param name="NodeId">The canonical persisted physical storage owner identifier, formatted as a GUID.</param> |
5 | | -/// <param name="Incarnation">The unique identifier for this process incarnation.</param> |
6 | | -/// <param name="Applied">The highest committed position applied by this node.</param> |
7 | | -/// <param name="Leader">The current leader identifier, if known.</param> |
8 | | -/// <param name="Voters">The number of voting nodes in the cluster.</param> |
9 | | -/// <param name="Durability">The configured durability profile.</param> |
10 | | -/// <param name="RoutingReady">Whether the node is ready to receive routed requests.</param> |
11 | | -/// <param name="ProcessId">The operating system process identifier.</param> |
12 | | -/// <param name="ReadGeneration">The generation of the node's read view.</param> |
13 | | -[Orleans.GenerateSerializer] |
14 | | -[Orleans.Alias(NativeContractAliases.NodeStatus)] |
15 | | -public sealed record NodeStatus([property: Orleans.Id(0)] string NodeId, [property: Orleans.Id(1)] Guid Incarnation, [property: Orleans.Id(2)] long Applied, [property: Orleans.Id(3)] string? Leader, [property: Orleans.Id(4)] int Voters, [property: Orleans.Id(5)] DurabilityProfile Durability, [property: Orleans.Id(6)] bool RoutingReady, [property: Orleans.Id(7)] int ProcessId, |
16 | | - [property: Orleans.Id(8)] long ReadGeneration = NodeStatus.DefaultReadGeneration) |
17 | | -{ |
18 | | - /// <summary>Gets the current native consensus term from the same locked status snapshot.</summary> |
19 | | - [Orleans.Id(9)] |
20 | | - public long ConsensusTerm |
21 | | - { |
22 | | - get; init; |
23 | | - } |
24 | | - |
25 | | - private const int DefaultReadGeneration = 0; |
26 | | -} |
| 3 | +/// <summary>Reports this physical store, native Orleans membership count and configured data-copy requirement.</summary> |
| 4 | +/// <param name="NodeId">Persisted physical store identifier.</param> |
| 5 | +/// <param name="Incarnation">Persisted database incarnation.</param> |
| 6 | +/// <param name="Position">Local ZoneTree position; positions on different stores are not interchangeable read tokens.</param> |
| 7 | +/// <param name="SiloCount">Active silos observed by native Orleans membership.</param> |
| 8 | +/// <param name="ReplicaCount">Required persisted copies for a successful write.</param> |
| 9 | +/// <param name="Durability">Actual database durability contract.</param> |
| 10 | +/// <param name="RoutingReady">Whether native runtime and database startup completed.</param> |
| 11 | +/// <param name="ProcessId">Operating system process identifier.</param> |
| 12 | +/// <param name="ReadGeneration">Current physical store read generation.</param> |
| 13 | +[Orleans.GenerateSerializer, Orleans.Alias(NativeContractAliases.NodeStatus)] |
| 14 | +public sealed record NodeStatus([property: Orleans.Id(0)] string NodeId, |
| 15 | + [property: Orleans.Id(1)] Guid Incarnation, [property: Orleans.Id(2)] long Position, |
| 16 | + [property: Orleans.Id(3)] int SiloCount, [property: Orleans.Id(4)] int ReplicaCount, |
| 17 | + [property: Orleans.Id(5)] DurabilityProfile Durability, [property: Orleans.Id(6)] bool RoutingReady, |
| 18 | + [property: Orleans.Id(7)] int ProcessId, [property: Orleans.Id(8)] long ReadGeneration); |
0 commit comments