Package org.exoplatform.services.rpc
Class TopologyChangeEvent
java.lang.Object
org.exoplatform.services.rpc.TopologyChangeEvent
The event triggered anytime the cluster has changed of topology
- Version:
- $Id$
- Author:
- Nicolas Filotto
-
Constructor Summary
ConstructorsConstructorDescriptionTopologyChangeEvent(boolean coordinatorHasChanged, boolean coordinator) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the current node is the coordinator or not after the topology changebooleanIndicates whether the coordinator has changed after the topology change
-
Constructor Details
-
TopologyChangeEvent
public TopologyChangeEvent(boolean coordinatorHasChanged, boolean coordinator) Default constructor- Parameters:
coordinatorHasChanged- this parameter is set totrueif the coordinator has changed,falseotherwisecoordinator- this parameter is set totrueif the current node is the coordinator,falseotherwise
-
-
Method Details
-
isCoordinator
public boolean isCoordinator()Indicates whether the current node is the coordinator or not after the topology change- Returns:
trueif the current node is the coordinator,falseotherwise.
-
isCoordinatorHasChanged
public boolean isCoordinatorHasChanged()Indicates whether the coordinator has changed after the topology change- Returns:
trueif the coordinator has changed,falseotherwise.
-