com.datastax.driver.core

## Interface Host.StateListener

• ### Method Summary

All Methods
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.
• ### Method Detail

void onAdd(Host host)
Called when a new node is added to the cluster.

The newly added node should be considered up.

Parameters:
host - the host that has been newly added.
• #### onUp

void onUp(Host host)
Called when a node is determined to be up.
Parameters:
host - the host that has been detected up.
• #### onSuspected

@Deprecated
void onSuspected(Host host)
Deprecated. the "suspicion" mechanism has been deprecated. This will never get called.
• #### onDown

void onDown(Host host)
Called when a node is determined to be down.
Parameters:
host - the host that has been detected down.
• #### onRemove

void onRemove(Host host)
Called when a node is removed from the cluster.
Parameters:
host - the removed host.