|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionManagerListener
Listener for the status of CassandraHosts
in order to use it - simply implement it and apply your own actions on the events
Use HConnectionManager.addListener(String, ConnectionManagerListener)
You can also extend the empty implementation ConnectionManagerEmptyListener if you only need some of the events
| Method Summary | |
|---|---|
String |
getName()
|
void |
onAddHost(CassandraHost cassandraHost,
boolean added,
String errorMessage,
Exception e)
fires when an action to add CassandraHost was triggered |
void |
onAllHostsDown()
fires when the CassandraHostRetryService detects that all nodes are down
CassandraHostRetryService must be enabled for this event to fire |
void |
onHostDown(CassandraHost cassandraHost)
fires when a CassandraHost was detected as down |
void |
onHostRestored(CassandraHost cassandraHost)
fires when a CassandraHost was restored by the CassandraHostRetryService
CassandraHostRetryService must be enabled for this event to fire |
void |
onRemoveHost(CassandraHost cassandraHost,
boolean removed,
String message)
fires when an action to remove CassandraHost was triggered |
void |
onSuspendHost(CassandraHost cassandraHost,
boolean removed)
fired when a suspend action was triggered on the host |
void |
onUnSuspendHost(CassandraHost cassandraHost,
boolean readded)
fired when an un-suspend action was triggered on the host |
| Method Detail |
|---|
void onHostDown(CassandraHost cassandraHost)
CassandraHost was detected as down
cassandraHost - - the host that was detected as downvoid onHostRestored(CassandraHost cassandraHost)
CassandraHost was restored by the CassandraHostRetryService
CassandraHostRetryService must be enabled for this event to fire
cassandraHost - - the restored hostvoid onAllHostsDown()
CassandraHostRetryService detects that all nodes are down
CassandraHostRetryService must be enabled for this event to fire
void onSuspendHost(CassandraHost cassandraHost,
boolean removed)
cassandraHost - - the host to be suspendedremoved - - true if was successfully suspended
void onUnSuspendHost(CassandraHost cassandraHost,
boolean readded)
cassandraHost - - the host to be un-suspendedreadded - - true if was successfully un-suspended
void onAddHost(CassandraHost cassandraHost,
boolean added,
String errorMessage,
Exception e)
CassandraHost was triggered
cassandraHost - - the host to addadded - - true if added successfullyerrorMessage - - the message in case of an error (can be null otherwise)e - - exception when trying to add
void onRemoveHost(CassandraHost cassandraHost,
boolean removed,
String message)
CassandraHost was triggered
cassandraHost - - the host to removeremoved - - true if successfully removedmessage - - the message received with the actionString getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||