Class NodeLeftEvent
- java.lang.Object
-
- de.xima.fc.cluster.model.events.BaseNodeEvent
-
- de.xima.fc.cluster.model.events.topo.BaseTopologyEvent
-
- de.xima.fc.cluster.model.events.topo.NodeLeftEvent
-
- All Implemented Interfaces:
Serializable
public class NodeLeftEvent extends BaseTopologyEvent
An event that is fired when a node left the cluster.- Since:
- 3.1.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.cluster.model.events.topo.BaseTopologyEvent
cluster
-
Fields inherited from class de.xima.fc.cluster.model.events.BaseNodeEvent
node
-
-
Constructor Summary
Constructors Constructor Description NodeLeftEvent(NodeModel node, ICluster cluster)
Creates a new event with the given data for when a node left the cluster.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeLeftEvent
handleTakeover(boolean handleTakeover)
boolean
isHandleTakeover()
void
setHandleTakeover(boolean handleTakeover)
-
Methods inherited from class de.xima.fc.cluster.model.events.topo.BaseTopologyEvent
getCluster
-
Methods inherited from class de.xima.fc.cluster.model.events.BaseNodeEvent
getNode
-
-
-
-
Method Detail
-
isHandleTakeover
public boolean isHandleTakeover()
- Returns:
- Whether any event listener is able to take over the node that left the cluster.
-
setHandleTakeover
public void setHandleTakeover(boolean handleTakeover)
- Parameters:
handleTakeover
- Whether the caller of this method (i.e. the event listener) was able to take over the node that left the cluster.
-
handleTakeover
public NodeLeftEvent handleTakeover(boolean handleTakeover)
- Parameters:
handleTakeover
- Whether the caller of this method (i.e. the event listener) was able to take over the node that left the cluster.- Returns:
- This event for chaining method calls.
-
-