Class ClusterNodeRejoinedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
com.atlassian.bitbucket.event.cluster.ClusterNodeAddedEvent
com.atlassian.bitbucket.event.cluster.ClusterNodeRejoinedEvent
- All Implemented Interfaces:
Serializable
Specialization of
ClusterNodeAddedEvent
that is raised when a node reconnects to the current node. This
happens when a network partition is resolved, for instance due to intermittent networking issues.
Note: when a network partition in a larger cluster occurs, the node may receive multiple
ClusterNodeRejoinedEvent
s when the partitions merge - one for each node-to-node connection that is
reestablished.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionClusterNodeRejoinedEvent
(Object source, ClusterNode node, Set<ClusterNode> currentNodes, long timestampDisconnected, long timestampReconnected) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class com.atlassian.bitbucket.event.cluster.ClusterNodeAddedEvent
getAddedNode
Methods inherited from class com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
getCurrentNodes
Methods inherited from class com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
getDate
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ClusterNodeRejoinedEvent
public ClusterNodeRejoinedEvent(@Nonnull Object source, @Nonnull ClusterNode node, @Nonnull Set<ClusterNode> currentNodes, long timestampDisconnected, long timestampReconnected)
-
-
Method Details
-
getDateDisconnected
- Returns:
- the date the node was disconnected from the current node
-
getDateReconnected
- Returns:
- the date the node reconnected to the current node
-
isMaybeNetworkPartitionResolved
public boolean isMaybeNetworkPartitionResolved()- Overrides:
isMaybeNetworkPartitionResolved
in classClusterNodeAddedEvent
- Returns:
true
if the node joining the cluster may be the result of a network partition (split brain) having resolved, otherwisefalse
.
-