public static interface Host.StateListener
Modifier and Type | Method and Description |
---|---|
void |
onAdd(Host host)
Called when a new node is added to the cluster.
|
void |
onDown(Host host)
Called when a node is determined to be down.
|
void |
onRemove(Host host)
Called when a node is removed from the cluster.
|
void |
onSuspected(Host host)
Deprecated.
the "suspicion" mechanism has been deprecated. This will never
get called.
|
void |
onUp(Host host)
Called when a node is determined to be up.
|
void onAdd(Host host)
host
- the host that has been newly added.void onUp(Host host)
host
- the host that has been detected up.@Deprecated void onSuspected(Host host)
void onDown(Host host)
host
- the host that has been detected down.void onRemove(Host host)
host
- the removed host.