@AsynchronousPreferred public class

ClusterNodeAddedEvent

extends ClusterMembershipEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
       ↳ com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
         ↳ com.atlassian.bitbucket.event.cluster.ClusterNodeAddedEvent
Known Direct Subclasses

Class Overview

Raised when a new node joins the cluster.

Due to the non-deterministic nature of event processing, it is possible the other nodes may have joined or left the cluster. As a result, using the ClusterInformation to determine the cluster nodes may be inconsistent. getCurrentNodes() is provided to simplify deterministic processing in listeners.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ClusterNodeAddedEvent(Object source, ClusterNode node, Set<ClusterNode> currentNodes)
Public Methods
@Nonnull ClusterNode getAddedNode()
boolean isMaybeNetworkPartitionResolved()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
From class com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public ClusterNodeAddedEvent (Object source, ClusterNode node, Set<ClusterNode> currentNodes)

Public Methods

@Nonnull public ClusterNode getAddedNode ()

Returns

public boolean isMaybeNetworkPartitionResolved ()

Returns
  • true if the node joining the cluster may be the result of a network partition (split brain) having resolved, otherwise false.