|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterListener
A listener interface that can be implemented to be notified about cluster events.
Listeners can be registered through the addClusterListener
method and removed through the removeClusterListener
method of a ClusterInfo
instance.
The ordering and the timing of the events isn't guaranteed across the cluster. It is however guaranteed that the events can only appear in the following order on each individual node:
The node joined
and node left
events are sent to all the nodes in the cluster and happen once for the
lifetime of a node.
The operations enabled
and operations disabled
events are repeatable and indicate temporary
situations that may resolve themselves automatically over time. Only the current node will receive events concerning
its own cluster operations. Nodes in the cluster don't get cluster operation events about other nodes.
Method Summary | |
---|---|
void |
onClusterEvent(ClusterEvent event)
This method is called whenever a ClusterEvent occurs. |
Method Detail |
---|
void onClusterEvent(ClusterEvent event)
ClusterEvent
occurs.
event
- details about the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |