eXo Kernel :: Component :: Common Service 2.4.0-CR2

org.exoplatform.services.rpc
Class TopologyChangeEvent

java.lang.Object
  extended by 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
TopologyChangeEvent(boolean coordinatorHasChanged, boolean coordinator)
          Default constructor
 
Method Summary
 boolean isCoordinator()
          Indicates whether the current node is the coordinator or not after the topology change
 boolean isCoordinatorHasChanged()
          Indicates whether the coordinator has changed after the topology change
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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.

eXo Kernel :: Component :: Common Service 2.4.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.