Package org.exoplatform.services.rpc
Class TopologyChangeEvent
- java.lang.Object
-
- org.exoplatform.services.rpc.TopologyChangeEvent
-
public class TopologyChangeEvent extends Object
The event triggered anytime the cluster has changed of topology- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Constructor Summary
Constructors Constructor Description TopologyChangeEvent(boolean coordinatorHasChanged, boolean coordinator)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCoordinator()Indicates whether the current node is the coordinator or not after the topology changebooleanisCoordinatorHasChanged()Indicates whether the coordinator has changed after the topology change
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-