Package org.apache.pekko.cluster
Class ClusterEvent.CurrentClusterState
java.lang.Object
org.apache.pekko.cluster.ClusterEvent.CurrentClusterState
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
,scala.Product5<scala.collection.immutable.SortedSet<Member>,
scala.collection.immutable.Set<Member>, scala.collection.immutable.Set<Address>, scala.Option<Address>, scala.collection.immutable.Map<String, scala.Option<Address>>>
- Enclosing class:
- ClusterEvent
public static final class ClusterEvent.CurrentClusterState
extends Object
implements scala.Product5<scala.collection.immutable.SortedSet<Member>,scala.collection.immutable.Set<Member>,scala.collection.immutable.Set<Address>,scala.Option<Address>,scala.collection.immutable.Map<String,scala.Option<Address>>>, Serializable
Current snapshot state of the cluster. Sent to new subscriber.
param: leader leader of the data center of this node param: memberTombstones INTERNAL API
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCurrentClusterState
(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<String, scala.Option<Address>> roleLeaderMap, scala.collection.immutable.Set<String> unreachableDataCenters, scala.collection.immutable.Set<UniqueAddress> memberTombstones) -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.immutable.SortedSet<Member>
_1()
scala.collection.immutable.Set<Member>
_2()
scala.collection.immutable.Set<Address>
_3()
scala.Option<Address>
_4()
_5()
scala.collection.immutable.Set<String>
All data centers in the clusterscala.collection.immutable.Set<String>
allRoles()
All node roles in the clusterboolean
copy
(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<String, scala.Option<Address>> roleLeaderMap) scala.collection.immutable.SortedSet<Member>
scala.collection.immutable.Set<Member>
scala.collection.immutable.Set<Address>
scala.Option<Address>
boolean
Java API: All data centers in the clusterJava API: All node roles in the clusterJava API: get address of current data center leader, or null if noneJava API: get current member list.getRoleLeader
(String role) Java API: get address of current leader, if any, within the data center that has the given role or null if no such node existsJava API: get current “seen-by” set.Java API: get current unreachable set.Java API: All data centers in the clusterint
hashCode()
scala.Option<Address>
leader()
scala.collection.immutable.SortedSet<Member>
members()
scala.Option<Address>
roleLeader
(String role) get address of current leader, if any, within the data center that has the given rolescala.collection.immutable.Set<Address>
seenBy()
toString()
scala.collection.immutable.Set<Member>
scala.collection.immutable.Set<String>
withMemberTombstones
(scala.collection.immutable.Set<UniqueAddress> memberTombstones) withUnreachableDataCenters
(scala.collection.immutable.Set<String> unreachableDataCenters) Replace the set of unreachable datacenters with the given setMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementName, productElementNames, productIterator
Methods inherited from interface scala.Product5
productArity, productElement
-
Constructor Details
-
CurrentClusterState
public 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<String, scala.Option<Address>> roleLeaderMap, scala.collection.immutable.Set<String> unreachableDataCenters, scala.collection.immutable.Set<UniqueAddress> memberTombstones)
-
-
Method Details
-
members
-
unreachable
-
seenBy
-
leader
-
roleLeaderMap
-
unreachableDataCenters
-
getMembers
Java API: get current member list. -
getUnreachable
Java API: get current unreachable set. -
getUnreachableDataCenters
Java API: All data centers in the cluster -
getSeenBy
Java API: get current “seen-by” set. -
getLeader
Java API: get address of current data center leader, or null if none -
roleLeader
get address of current leader, if any, within the data center that has the given role -
getRoleLeader
Java API: get address of current leader, if any, within the data center that has the given role or null if no such node exists -
allRoles
All node roles in the cluster -
getAllRoles
Java API: All node roles in the cluster -
allDataCenters
All data centers in the cluster -
getAllDataCenters
Java API: All data centers in the cluster -
withUnreachableDataCenters
public ClusterEvent.CurrentClusterState withUnreachableDataCenters(scala.collection.immutable.Set<String> unreachableDataCenters) Replace the set of unreachable datacenters with the given set -
withMemberTombstones
public ClusterEvent.CurrentClusterState withMemberTombstones(scala.collection.immutable.Set<UniqueAddress> memberTombstones) -
copy
public ClusterEvent.CurrentClusterState copy(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<String, scala.Option<Address>> roleLeaderMap) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
copy$default$4
-
copy$default$5
-
equals
-
hashCode
public int hashCode() -
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
_1
-
_2
-
_3
-
_4
-
_5
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
toString
-