public interface ConnectionManagerListener extends Serializable
HConnectionManager.addListener(String, ConnectionManagerListener)
You can also extend the empty implementation ConnectionManagerEmptyListener if you only need some of the events| Modifier and Type | Method and Description |
|---|---|
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
|
void onHostDown(CassandraHost cassandraHost)
CassandraHost was detected as downcassandraHost - - the host that was detected as downvoid onHostRestored(CassandraHost cassandraHost)
CassandraHost was restored by the CassandraHostRetryService
CassandraHostRetryService must be enabled for this event to firecassandraHost - - the restored hostvoid onAllHostsDown()
CassandraHostRetryService detects that all nodes are down
CassandraHostRetryService must be enabled for this event to firevoid onSuspendHost(CassandraHost cassandraHost, boolean removed)
cassandraHost - - the host to be suspendedremoved - - true if was successfully suspendedvoid onUnSuspendHost(CassandraHost cassandraHost, boolean readded)
cassandraHost - - the host to be un-suspendedreadded - - true if was successfully un-suspendedvoid onAddHost(CassandraHost cassandraHost, boolean added, String errorMessage, Exception e)
CassandraHost was triggeredcassandraHost - - the host to addadded - - true if added successfullyerrorMessage - - the message in case of an error (can be null otherwise)e - - exception when trying to addvoid onRemoveHost(CassandraHost cassandraHost, boolean removed, String message)
CassandraHost was triggeredcassandraHost - - the host to removeremoved - - true if successfully removedmessage - - the message received with the actionString getName()
Copyright © 2014. All Rights Reserved.