Class RaftClusterMember
Represents Raft cluster member that is accessible through the network.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public abstract class RaftClusterMember : Disposable, IDisposable, IRaftClusterMember, IClusterMember, IPeer
Properties
| Edit this page View SourceEndPoint
Gets the address of this cluster member.
Declaration
public EndPoint EndPoint { get; }
Property Value
Type | Description |
---|---|
EndPoint |
IsLeader
Determines whether this member is a leader.
Declaration
public bool IsLeader { get; }
Property Value
Type | Description |
---|---|
bool |
IsRemote
Determines whether this member is not a local node.
Declaration
public bool IsRemote { get; }
Property Value
Type | Description |
---|---|
bool |
Status
Gets the status of this member.
Declaration
public ClusterMemberStatus Status { get; }
Property Value
Type | Description |
---|---|
ClusterMemberStatus |
Methods
| Edit this page View SourceCancelPendingRequestsAsync()
Cancels pending requests scheduled for this member.
Declaration
public abstract ValueTask CancelPendingRequestsAsync()
Returns
Type | Description |
---|---|
ValueTask | The task representing asynchronous execution of this method. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Events
| Edit this page View SourceMemberStatusChanged
Informs about status change.
Declaration
public event Action<ClusterMemberStatusChangedEventArgs<RaftClusterMember>> MemberStatusChanged
Event Type
Type | Description |
---|---|
Action<ClusterMemberStatusChangedEventArgs<RaftClusterMember>> |