org.activecluster.group
Class GroupClusterListener

java.lang.Object
  extended byorg.activecluster.group.GroupClusterListener
All Implemented Interfaces:
ClusterListener, EventListener

public class GroupClusterListener
extends Object
implements ClusterListener

A ClusterListener which maintains a GroupModel implementation

Version:
$Revision: 1.1 $

Constructor Summary
GroupClusterListener(GroupModel model)
           
 
Method Summary
 GroupModel getModel()
           
 void onCoordinatorChanged(ClusterEvent event)
          An election has occurred and a new coordinator has been selected
 void onNodeAdd(ClusterEvent event)
          A new node has been added
 void onNodeFailed(ClusterEvent event)
          A node has failed due to process or network failure
 void onNodeRemoved(ClusterEvent event)
          A node has been removed (a clean shutdown)
 void onNodeUpdate(ClusterEvent event)
          A node has updated its state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupClusterListener

public GroupClusterListener(GroupModel model)
Method Detail

getModel

public GroupModel getModel()

onNodeAdd

public void onNodeAdd(ClusterEvent event)
Description copied from interface: ClusterListener
A new node has been added

Specified by:
onNodeAdd in interface ClusterListener
Parameters:
event -

onNodeUpdate

public void onNodeUpdate(ClusterEvent event)
Description copied from interface: ClusterListener
A node has updated its state

Specified by:
onNodeUpdate in interface ClusterListener
Parameters:
event -

onNodeRemoved

public void onNodeRemoved(ClusterEvent event)
Description copied from interface: ClusterListener
A node has been removed (a clean shutdown)

Specified by:
onNodeRemoved in interface ClusterListener
Parameters:
event -

onNodeFailed

public void onNodeFailed(ClusterEvent event)
Description copied from interface: ClusterListener
A node has failed due to process or network failure

Specified by:
onNodeFailed in interface ClusterListener
Parameters:
event -

onCoordinatorChanged

public void onCoordinatorChanged(ClusterEvent event)
Description copied from interface: ClusterListener
An election has occurred and a new coordinator has been selected

Specified by:
onCoordinatorChanged in interface ClusterListener
Parameters:
event -


Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.