Class MetricsCollector
Contains a set of callbacks that can be used to report runtime metrics generated by Raft cluster node.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public class MetricsCollector : ILeaderStateMetrics, IFollowerStateMetrics
Methods
| Improve this Doc View SourceMovedToCandidateState()
Reports that node becomes a candidate.
Declaration
public virtual void MovedToCandidateState()
MovedToFollowerState()
Reports that node becomes a follower.
Declaration
public virtual void MovedToFollowerState()
MovedToLeaderState()
Reports that node becomes a leader.
Declaration
public virtual void MovedToLeaderState()
ReportBroadcastTime(TimeSpan)
Reports about broadcast time.
Declaration
public virtual void ReportBroadcastTime(TimeSpan value)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | value | The broadcast time. |
Remarks
Broadcast time is the time spent accessing the cluster nodes caused by Leader states.
ReportHeartbeat()
Reports that node receives a heartbeat from leader node.
Declaration
public virtual void ReportHeartbeat()