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 Details

    • TopologyChangeEvent

      public TopologyChangeEvent(boolean coordinatorHasChanged, boolean coordinator)
      Default constructor
      Parameters:
      coordinatorHasChanged - this parameter is set to true if the coordinator has changed, false otherwise
      coordinator - this parameter is set to true if the current node is the coordinator, false otherwise
  • Method Details

    • isCoordinator

      public boolean isCoordinator()
      Indicates whether the current node is the coordinator or not after the topology change
      Returns:
      true if the current node is the coordinator, false otherwise.
    • isCoordinatorHasChanged

      public boolean isCoordinatorHasChanged()
      Indicates whether the coordinator has changed after the topology change
      Returns:
      true if the coordinator has changed, false otherwise.