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 SummaryConstructors Constructor Description ClusterTopologyObserver()
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface de.xima.fc.cluster.interfaces.observer.IClusterTopologyObserveronNodeCrashSuspect
 
- 
 
- 
- 
- 
Method Detail- 
onNodeJoinedpublic 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 interface- IClusterTopologyObserver
- Parameters:
- event- Details about the node that joined the cluster.
 
 - 
onNodeLeftpublic 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 interface- IClusterTopologyObserver
- Parameters:
- event- Details about the node that left the cluster.
 
 - 
addListenerpublic 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 interface- IClusterTopologyObserver
- Parameters:
- listener- Listener to add that will be invoked when an event occurs.
 
 - 
removeListenerpublic void removeListener(IClusterTopologyListener listener) Description copied from interface:IClusterTopologyObserverRemoves a listener previously added viaIClusterTopologyObserver.addListener(IClusterTopologyListener).- Specified by:
- removeListenerin interface- IClusterTopologyObserver
- Parameters:
- listener- Listener that should not be invoked anymore.
 
 
- 
 
-