Search Results for

    Show / Hide Table of Contents

    Class ClusterEvent.CurrentClusterState

    A snapshot of the current state of the Cluster

    Inheritance
    object
    ClusterEvent.CurrentClusterState
    Implements
    INoSerializationVerificationNeeded
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Cluster
    Assembly: Akka.Cluster.dll
    Syntax
    public sealed class ClusterEvent.CurrentClusterState : INoSerializationVerificationNeeded

    Constructors

    | Edit this page View Source

    CurrentClusterState()

    Creates a new instance of the current cluster state.

    Declaration
    public CurrentClusterState()
    | Edit this page View Source

    CurrentClusterState(ImmutableSortedSet<Member>, ImmutableHashSet<Member>, ImmutableHashSet<Address>, Address, ImmutableDictionary<string, Address>)

    Creates a new instance of the current cluster state.

    Declaration
    public CurrentClusterState(ImmutableSortedSet<Member> members, ImmutableHashSet<Member> unreachable, ImmutableHashSet<Address> seenBy, Address leader, ImmutableDictionary<string, Address> roleLeaderMap)
    Parameters
    Type Name Description
    ImmutableSortedSet<Member> members

    The current members of the cluster.

    ImmutableHashSet<Member> unreachable

    The unreachable members of the cluster.

    ImmutableHashSet<Address> seenBy

    The set of nodes who have seen us.

    Address leader

    The leader of the cluster.

    ImmutableDictionary<string, Address> roleLeaderMap

    The list of role leaders.

    Properties

    | Edit this page View Source

    AllRoles

    All node roles in the cluster

    Declaration
    public ImmutableHashSet<string> AllRoles { get; }
    Property Value
    Type Description
    ImmutableHashSet<string>
    | Edit this page View Source

    HasMoreThanOneAppVersion

    return true if more than one Version among the members, which indicates that a rolling update is in progress

    Declaration
    public bool HasMoreThanOneAppVersion { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Leader

    Get address of current leader, or null if noe

    Declaration
    public Address Leader { get; }
    Property Value
    Type Description
    Address
    | Edit this page View Source

    Members

    Get current member list

    Declaration
    public ImmutableSortedSet<Member> Members { get; }
    Property Value
    Type Description
    ImmutableSortedSet<Member>
    | Edit this page View Source

    SeenBy

    Get current "seen-by" set

    Declaration
    public ImmutableHashSet<Address> SeenBy { get; }
    Property Value
    Type Description
    ImmutableHashSet<Address>
    | Edit this page View Source

    Unreachable

    Get current unreachable set

    Declaration
    public ImmutableHashSet<Member> Unreachable { get; }
    Property Value
    Type Description
    ImmutableHashSet<Member>

    Methods

    | Edit this page View Source

    Copy(ImmutableSortedSet<Member>, ImmutableHashSet<Member>, ImmutableHashSet<Address>, Address, ImmutableDictionary<string, Address>)

    Creates a deep copy of the ClusterEvent.CurrentClusterState and optionally allows you to specify different values for the outgoing objects

    Declaration
    public ClusterEvent.CurrentClusterState Copy(ImmutableSortedSet<Member> members = null, ImmutableHashSet<Member> unreachable = null, ImmutableHashSet<Address> seenBy = null, Address leader = null, ImmutableDictionary<string, Address> roleLeaderMap = null)
    Parameters
    Type Name Description
    ImmutableSortedSet<Member> members

    TBD

    ImmutableHashSet<Member> unreachable

    TBD

    ImmutableHashSet<Address> seenBy

    TBD

    Address leader

    TBD

    ImmutableDictionary<string, Address> roleLeaderMap

    TBD

    Returns
    Type Description
    ClusterEvent.CurrentClusterState

    TBD

    | Edit this page View Source

    RoleLeader(string)

    Get address of current leader, if any, within the role set

    Declaration
    public Address RoleLeader(string role)
    Parameters
    Type Name Description
    string role

    The role we wish to check.

    Returns
    Type Description
    Address

    The address of the node who is the real leader, if any. Otherwise null.

    Implements

    INoSerializationVerificationNeeded

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET