Class MeshNodeAvailabilityChangedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.mesh.AbstractMeshNodeEvent
com.atlassian.bitbucket.event.mesh.MeshNodeAvailabilityChangedEvent
- All Implemented Interfaces:
MeshNodeEvent,Serializable
Raised when a
MeshNode comes online or goes offline.
Note: It is not always detected when a node goes offline, and, since the node was never observed going offline, when it comes back online no event is raised since its availability was not observed to change. This is an informational event only and is not guaranteed.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionMeshNodeAvailabilityChangedEvent(Object source, MeshNode node, boolean available) -
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.mesh.AbstractMeshNodeEvent
getNode, getNodeIdMethods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUserMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MeshNodeAvailabilityChangedEvent
-
-
Method Details
-
isAvailable
public boolean isAvailable()- Returns:
trueif the node has come online after being offline; otherwise,falseif the node has gone offline after being online
-