Table of Contents

Class QuorumState

Namespace
Org.Apache.Kafka.Raft
Assembly
MASES.KNet.dll
public class QuorumState : JVMBridgeBase<QuorumState>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<QuorumState>
QuorumState
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<QuorumState>.IsAssignableFrom(IJavaType)
JVMBridgeBase<QuorumState>.IsAssignableFrom<T>()
JVMBridgeBase<QuorumState>.Execute<T>(params T[])
JVMBridgeBase<QuorumState>.DynBridgeClazz
JVMBridgeBase<QuorumState>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

QuorumState()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public QuorumState()

QuorumState(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public QuorumState(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

CanGrantVote(ReplicaKey, bool)

public bool CanGrantVote(ReplicaKey arg0, bool arg1)

Parameters

arg0 ReplicaKey

ReplicaKey

arg1 bool

bool

Returns

bool

bool

CandidateStateOrThrow()

public CandidateState CandidateStateOrThrow()

Returns

CandidateState

CandidateState

Epoch()

public int Epoch()

Returns

int

int

FollowerStateOrThrow()

public FollowerState FollowerStateOrThrow()

Returns

FollowerState

FollowerState

HasLeader()

public bool HasLeader()

Returns

bool

bool

HasRemoteLeader()

public bool HasRemoteLeader()

Returns

bool

bool

HighWatermark()

public Optional<LogOffsetMetadata> HighWatermark()

Returns

Optional<LogOffsetMetadata>

Optional

Initialize(OffsetAndEpoch)

public void Initialize(OffsetAndEpoch arg0)

Parameters

arg0 OffsetAndEpoch

OffsetAndEpoch

Exceptions

IllegalStateException

IsCandidate()

public bool IsCandidate()

Returns

bool

bool

IsFollower()

public bool IsFollower()

Returns

bool

bool

IsLeader()

public bool IsLeader()

Returns

bool

bool

IsObserver()

public bool IsObserver()

Returns

bool

bool

IsOnlyVoter()

public bool IsOnlyVoter()

Returns

bool

bool

IsResigned()

public bool IsResigned()

Returns

bool

bool

IsUnattached()

public bool IsUnattached()

Returns

bool

bool

IsUnattachedAndVoted()

public bool IsUnattachedAndVoted()

Returns

bool

bool

IsUnattachedNotVoted()

public bool IsUnattachedNotVoted()

Returns

bool

bool

IsVoter()

public bool IsVoter()

Returns

bool

bool

IsVoter(ReplicaKey)

public bool IsVoter(ReplicaKey arg0)

Parameters

arg0 ReplicaKey

ReplicaKey

Returns

bool

bool

LeaderAndEpoch()

public LeaderAndEpoch LeaderAndEpoch()

Returns

LeaderAndEpoch

LeaderAndEpoch

LeaderEndpoints()

public Endpoints LeaderEndpoints()

Returns

Endpoints

Endpoints

LeaderId()

public OptionalInt LeaderId()

Returns

OptionalInt

OptionalInt

LeaderIdOrSentinel()

public int LeaderIdOrSentinel()

Returns

int

int

LeaderStateOrThrow<T>()

public LeaderState<T> LeaderStateOrThrow<T>()

Returns

LeaderState<T>

LeaderState

Type Parameters

T

LocalDirectoryId()

public Uuid LocalDirectoryId()

Returns

Uuid

Uuid

LocalId()

public OptionalInt LocalId()

Returns

OptionalInt

OptionalInt

LocalIdOrSentinel()

public int LocalIdOrSentinel()

Returns

int

int

LocalIdOrThrow()

public int LocalIdOrThrow()

Returns

int

int

LocalReplicaKeyOrThrow()

public ReplicaKey LocalReplicaKeyOrThrow()

Returns

ReplicaKey

ReplicaKey

LocalVoterNodeOrThrow()

public VoterSet.VoterNode LocalVoterNodeOrThrow()

Returns

VoterSet.VoterNode

VoterSet.VoterNode

MaybeLeaderState<T>()

public Optional<LeaderState<T>> MaybeLeaderState<T>()

Returns

Optional<LeaderState<T>>

Optional

Type Parameters

T

MaybeUnattachedState()

public Optional<UnattachedState> MaybeUnattachedState()

Returns

Optional<UnattachedState>

Optional

ResignedStateOrThrow()

public ResignedState ResignedStateOrThrow()

Returns

ResignedState

ResignedState

TransitionToCandidate()

public void TransitionToCandidate()

TransitionToFollower(int, int, Endpoints)

public void TransitionToFollower(int arg0, int arg1, Endpoints arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 Endpoints

Endpoints

TransitionToResigned(List<ReplicaKey>)

public void TransitionToResigned(List<ReplicaKey> arg0)

Parameters

arg0 List<ReplicaKey>

List

TransitionToUnattached(int)

public void TransitionToUnattached(int arg0)

Parameters

arg0 int

int

TransitionToUnattachedVotedState(int, ReplicaKey)

public void TransitionToUnattachedVotedState(int arg0, ReplicaKey arg1)

Parameters

arg0 int

int

arg1 ReplicaKey

ReplicaKey

UnattachedStateOrThrow()

public UnattachedState UnattachedStateOrThrow()

Returns

UnattachedState

UnattachedState