Package de.xima.fc.cluster.observer
Class ClusterTopologyObserver
- java.lang.Object
 - 
- de.xima.fc.cluster.observer.ClusterTopologyObserver
 
 
- 
- All Implemented Interfaces:
 IClusterTopologyObserver,Serializable
public class ClusterTopologyObserver extends Object implements IClusterTopologyObserver
Default implementation ofIClusterTopologyObserverthat delegates to the registeredIClusterTopologyListener.- Since:
 - 3.1.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ClusterTopologyObserver() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(IClusterTopologyListener listener)Adds a listener that will be invoked when an event related to a change in the cluster topology occurs.voidonNodeJoined(NodeJoinEvent event)Method that should be called when a node was added to the cluster.voidonNodeLeft(NodeLeftEvent event)Method that should be called when a node was removed from the cluster.voidremoveListener(IClusterTopologyListener listener)Removes a listener previously added viaIClusterTopologyObserver.addListener(IClusterTopologyListener).- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.cluster.interfaces.observer.IClusterTopologyObserver
onNodeCrashSuspect 
 - 
 
 - 
 
- 
- 
Method Detail
- 
onNodeJoined
public void onNodeJoined(NodeJoinEvent event)
Description copied from interface:IClusterTopologyObserverMethod that should be called when a node was added to the cluster. This method should invoke the appropriate listeners added viaIClusterTopologyObserver.addListener(IClusterTopologyListener).- Specified by:
 onNodeJoinedin interfaceIClusterTopologyObserver- Parameters:
 event- Details about the node that joined the cluster.
 
- 
onNodeLeft
public void onNodeLeft(NodeLeftEvent event)
Description copied from interface:IClusterTopologyObserverMethod that should be called when a node was removed from the cluster. This method should invoke the appropriate listeners added viaIClusterTopologyObserver.addListener(IClusterTopologyListener).- Specified by:
 onNodeLeftin interfaceIClusterTopologyObserver- Parameters:
 event- Details about the node that left the cluster.
 
- 
addListener
public void addListener(IClusterTopologyListener listener)
Description copied from interface:IClusterTopologyObserverAdds a listener that will be invoked when an event related to a change in the cluster topology occurs.- Specified by:
 addListenerin interfaceIClusterTopologyObserver- Parameters:
 listener- Listener to add that will be invoked when an event occurs.
 
- 
removeListener
public void removeListener(IClusterTopologyListener listener)
Description copied from interface:IClusterTopologyObserverRemoves a listener previously added viaIClusterTopologyObserver.addListener(IClusterTopologyListener).- Specified by:
 removeListenerin interfaceIClusterTopologyObserver- Parameters:
 listener- Listener that should not be invoked anymore.
 
 - 
 
 -