Class ClusterMembershipEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
com.atlassian.bitbucket.event.cluster.ClusterMembershipEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClusterNodeAddedEvent
,ClusterNodeRemovedEvent
A base class for events related to cluster membership, raised when nodes
join
and
leave
the cluster.
This class exists primarily to simplify writing event types. Plugins generally should not listen for this base class; they should listen for specific subclasses.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current set ofcluster nodes
at the time the event was raised.Methods inherited from class com.atlassian.bitbucket.event.cluster.ClusterNodeEvent
getDate
Methods inherited from class java.util.EventObject
getSource, toString
-
Method Details
-
getCurrentNodes
Retrieves the current set ofcluster nodes
at the time the event was raised. If a new node has joined, it will be in the returned set. If an existing node has departed, it will not be.- Returns:
- the current cluster nodes
-