akka.cluster
Class ClusterEvent.CurrentClusterState

java.lang.Object
  extended by akka.cluster.ClusterEvent.CurrentClusterState
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product
Enclosing class:
ClusterEvent

public static class ClusterEvent.CurrentClusterState
extends java.lang.Object
implements scala.Product, scala.Serializable

Current snapshot state of the cluster. Sent to new subscriber.

See Also:
Serialized Form

Constructor Summary
ClusterEvent.CurrentClusterState(scala.collection.immutable.SortedSet<Member> members, scala.collection.immutable.Set<Member> unreachable, scala.collection.immutable.Set<Address> seenBy, scala.Option<Address> leader, scala.collection.immutable.Map<java.lang.String,scala.Option<Address>> roleLeaderMap)
           
 
Method Summary
 scala.collection.immutable.Set<java.lang.String> allRoles()
          All node roles in the cluster
 java.util.Set<java.lang.String> getAllRoles()
          Java API: All node roles in the cluster
 Address getLeader()
          Java API: get address of current leader, or null if none
 java.lang.Iterable<Member> getMembers()
          Java API: get current member list.
 Address getRoleLeader(java.lang.String role)
          Java API: get address of current leader within the role set, or null if no node with that role
 java.util.Set<Address> getSeenBy()
          Java API: get current “seen-by” set.
 java.util.Set<Member> getUnreachable()
          Java API: get current unreachable set.
 scala.Option<Address> leader()
           
 scala.collection.immutable.SortedSet<Member> members()
           
 scala.Option<Address> roleLeader(java.lang.String role)
          get address of current leader, if any, within the role set
 scala.collection.immutable.Map<java.lang.String,scala.Option<Address>> roleLeaderMap()
           
 scala.collection.immutable.Set<Address> seenBy()
           
 scala.collection.immutable.Set<Member> unreachable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

ClusterEvent.CurrentClusterState

public ClusterEvent.CurrentClusterState(scala.collection.immutable.SortedSet<Member> members,
                                        scala.collection.immutable.Set<Member> unreachable,
                                        scala.collection.immutable.Set<Address> seenBy,
                                        scala.Option<Address> leader,
                                        scala.collection.immutable.Map<java.lang.String,scala.Option<Address>> roleLeaderMap)
Method Detail

members

public scala.collection.immutable.SortedSet<Member> members()

unreachable

public scala.collection.immutable.Set<Member> unreachable()

seenBy

public scala.collection.immutable.Set<Address> seenBy()

leader

public scala.Option<Address> leader()

roleLeaderMap

public scala.collection.immutable.Map<java.lang.String,scala.Option<Address>> roleLeaderMap()

getMembers

public java.lang.Iterable<Member> getMembers()
Java API: get current member list.


getUnreachable

public java.util.Set<Member> getUnreachable()
Java API: get current unreachable set.


getSeenBy

public java.util.Set<Address> getSeenBy()
Java API: get current “seen-by” set.


getLeader

public Address getLeader()
Java API: get address of current leader, or null if none


allRoles

public scala.collection.immutable.Set<java.lang.String> allRoles()
All node roles in the cluster


getAllRoles

public java.util.Set<java.lang.String> getAllRoles()
Java API: All node roles in the cluster


roleLeader

public scala.Option<Address> roleLeader(java.lang.String role)
get address of current leader, if any, within the role set


getRoleLeader

public Address getRoleLeader(java.lang.String role)
Java API: get address of current leader within the role set, or null if no node with that role