|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Host.StateListener
Interface for listeners that are interested in hosts add, up, down and remove events.
Note that particularly for up and down events, it is possible that the same event be delivered multiple times. Listeners should thus be resilient and ignore a down (resp. up) event if the node has already been signaled down (resp. up).
Method Summary | |
---|---|
void |
onAdd(Host host)
Called when a new node is added to the cluster. |
void |
onDown(Host host)
Called when a node is detected down. |
void |
onRemove(Host host)
Called when a node is removed from the cluster. |
void |
onUp(Host host)
Called when a node is detected up. |
Method Detail |
---|
void onAdd(Host host)
host
- the host that has been newly added.void onUp(Host host)
host
- the host that has been detected up.void onDown(Host host)
host
- the host that has been detected down.void onRemove(Host host)
host
- the removed host.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |