Class Gossip$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.cluster.GossipOverviewINTERNAL APIscala.collection.immutable.Map<UniqueAddress,Object> org.apache.pekko.cluster.Gossiporg.apache.pekko.cluster.Gossipapply(scala.collection.immutable.SortedSet<Member> members, org.apache.pekko.cluster.GossipOverview overview, VectorClock version, scala.collection.immutable.Map<UniqueAddress, Object> tombstones) INTERNAL APIorg.apache.pekko.cluster.GossipOverviewINTERNAL APIscala.collection.immutable.Map<UniqueAddress,Object> org.apache.pekko.cluster.Gossipempty()scala.collection.immutable.SortedSet<Member>scala.Option<scala.Tuple4<scala.collection.immutable.SortedSet<Member>,org.apache.pekko.cluster.GossipOverview, VectorClock, scala.collection.immutable.Map<UniqueAddress, Object>>> unapply(org.apache.pekko.cluster.Gossip x$0) vclockName(UniqueAddress node)
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Gossip$
public Gossip$()
-
-
Method Details
-
$lessinit$greater$default$2
public org.apache.pekko.cluster.GossipOverview $lessinit$greater$default$2()INTERNAL APIRepresents the state of the cluster; cluster ring membership, ring convergence - all versioned by a vector clock.
When a node is joining the
Member, with statusJoining, is added tomembers. If the joining node was downed it is moved fromoverview.unreachable(statusDown) tomembers(statusJoining). It cannot rejoin if not first downed.When convergence is reached the leader change status of
membersfromJoiningtoUp.When failure detector consider a node as unavailable it will be moved from
memberstooverview.unreachable.When a node is downed, either manually or automatically, its status is changed to
Down. It is also removed fromoverview.seentable. The node will reside asDownin theoverview.unreachableset until joining again and it will then go through the normal joining procedure.When a
Gossipis received the version (vector clock) is used to determine if the receivedGossipis newer or older than the current localGossip. The receivedGossipand localGossipis merged in case of conflicting version, i.e. vector clocks without same history.When a node is told by the user to leave the cluster the leader will move it to
Leavingand then rebalance and repartition the cluster and start hand-off by migrating the actors from the leaving node to the new partitions. Once this process is complete the leader will move the node to theExitingstate and once a convergence is complete move the node toRemovedby removing it from themembersset and sending aRemovedcommand to the removed node telling it to shut itself down. -
$lessinit$greater$default$3
-
$lessinit$greater$default$4
-
emptyMembers
-
empty
public org.apache.pekko.cluster.Gossip empty() -
apply
-
apply$default$2
public org.apache.pekko.cluster.GossipOverview apply$default$2()INTERNAL APIRepresents the state of the cluster; cluster ring membership, ring convergence - all versioned by a vector clock.
When a node is joining the
Member, with statusJoining, is added tomembers. If the joining node was downed it is moved fromoverview.unreachable(statusDown) tomembers(statusJoining). It cannot rejoin if not first downed.When convergence is reached the leader change status of
membersfromJoiningtoUp.When failure detector consider a node as unavailable it will be moved from
memberstooverview.unreachable.When a node is downed, either manually or automatically, its status is changed to
Down. It is also removed fromoverview.seentable. The node will reside asDownin theoverview.unreachableset until joining again and it will then go through the normal joining procedure.When a
Gossipis received the version (vector clock) is used to determine if the receivedGossipis newer or older than the current localGossip. The receivedGossipand localGossipis merged in case of conflicting version, i.e. vector clocks without same history.When a node is told by the user to leave the cluster the leader will move it to
Leavingand then rebalance and repartition the cluster and start hand-off by migrating the actors from the leaving node to the new partitions. Once this process is complete the leader will move the node to theExitingstate and once a convergence is complete move the node toRemovedby removing it from themembersset and sending aRemovedcommand to the removed node telling it to shut itself down. -
apply$default$3
-
apply$default$4
-
vclockName
-
apply
public org.apache.pekko.cluster.Gossip apply(scala.collection.immutable.SortedSet<Member> members, org.apache.pekko.cluster.GossipOverview overview, VectorClock version, scala.collection.immutable.Map<UniqueAddress, Object> tombstones) INTERNAL APIRepresents the state of the cluster; cluster ring membership, ring convergence - all versioned by a vector clock.
When a node is joining the
Member, with statusJoining, is added tomembers. If the joining node was downed it is moved fromoverview.unreachable(statusDown) tomembers(statusJoining). It cannot rejoin if not first downed.When convergence is reached the leader change status of
membersfromJoiningtoUp.When failure detector consider a node as unavailable it will be moved from
memberstooverview.unreachable.When a node is downed, either manually or automatically, its status is changed to
Down. It is also removed fromoverview.seentable. The node will reside asDownin theoverview.unreachableset until joining again and it will then go through the normal joining procedure.When a
Gossipis received the version (vector clock) is used to determine if the receivedGossipis newer or older than the current localGossip. The receivedGossipand localGossipis merged in case of conflicting version, i.e. vector clocks without same history.When a node is told by the user to leave the cluster the leader will move it to
Leavingand then rebalance and repartition the cluster and start hand-off by migrating the actors from the leaving node to the new partitions. Once this process is complete the leader will move the node to theExitingstate and once a convergence is complete move the node toRemovedby removing it from themembersset and sending aRemovedcommand to the removed node telling it to shut itself down. -
unapply
public scala.Option<scala.Tuple4<scala.collection.immutable.SortedSet<Member>,org.apache.pekko.cluster.GossipOverview, unapplyVectorClock, scala.collection.immutable.Map<UniqueAddress, Object>>> (org.apache.pekko.cluster.Gossip x$0)
-