Show / Hide Table of Contents

Class ClusterMemberConfiguration

Represents configuration of cluster member.

Inheritance
Object
ClusterMemberConfiguration
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.AspNetCore.Cluster.dll
Syntax
public class ClusterMemberConfiguration : IClusterMemberConfiguration

Constructors

| Improve this Doc View Source

ClusterMemberConfiguration()

Initializes a new default configuration.

Declaration
public ClusterMemberConfiguration()

Properties

| Improve this Doc View Source

AllowedNetworks

Represents set of networks from which remote member can make a request to the local member.

Declaration
[CLSCompliant(false)]
public HashSet<IPNetwork> AllowedNetworks { get; }
Property Value
Type Description
HashSet<System.Net.IPNetwork>
Remarks

Example of IPv6 network: 2001:0db8::/32 Example of IPv4 network: 192.168.0.0/24.

| Improve this Doc View Source

HeartbeatThreshold

Gets or sets threshold of the heartbeat timeout.

Declaration
public double HeartbeatThreshold { get; set; }
Property Value
Type Description
Double
| Improve this Doc View Source

LowerElectionTimeout

Gets lower possible value of leader election timeout, in milliseconds.

Declaration
public int LowerElectionTimeout { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Metadata

Gets metadata associated with local cluster member.

Declaration
public IDictionary<string, string> Metadata { get; }
Property Value
Type Description
IDictionary<String, String>
| Improve this Doc View Source

Partitioning

Indicates that each part of cluster in partitioned network allow to elect its own leader.

Declaration
public bool Partitioning { get; set; }
Property Value
Type Description
Boolean
Remarks

false value allows to build CA distributed cluster while true value allows to build CP/AP distributed cluster.

| Improve this Doc View Source

UpperElectionTimeout

Gets upper possible value of leader election timeout, in milliseconds.

Declaration
public int UpperElectionTimeout { get; set; }
Property Value
Type Description
Int32

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX