public abstract class ConnectionManagerEmptyListener extends Object implements ConnectionManagerListener
ConnectionManagerListener
can be extended if you need only some of the events| Constructor and Description |
|---|
ConnectionManagerEmptyListener() |
| 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
|
public void onHostDown(CassandraHost cassandraHost)
ConnectionManagerListenerCassandraHost was detected as downonHostDown in interface ConnectionManagerListenercassandraHost - - the host that was detected as downpublic void onHostRestored(CassandraHost cassandraHost)
ConnectionManagerListenerCassandraHost was restored by the CassandraHostRetryService
CassandraHostRetryService must be enabled for this event to fireonHostRestored in interface ConnectionManagerListenercassandraHost - - the restored hostpublic void onAllHostsDown()
ConnectionManagerListenerCassandraHostRetryService detects that all nodes are down
CassandraHostRetryService must be enabled for this event to fireonAllHostsDown in interface ConnectionManagerListenerpublic void onSuspendHost(CassandraHost cassandraHost, boolean removed)
ConnectionManagerListeneronSuspendHost in interface ConnectionManagerListenercassandraHost - - the host to be suspendedremoved - - true if was successfully suspendedpublic void onUnSuspendHost(CassandraHost cassandraHost, boolean readded)
ConnectionManagerListeneronUnSuspendHost in interface ConnectionManagerListenercassandraHost - - the host to be un-suspendedreadded - - true if was successfully un-suspendedpublic void onAddHost(CassandraHost cassandraHost, boolean added, String errorMessage, Exception e)
ConnectionManagerListenerCassandraHost was triggeredonAddHost in interface ConnectionManagerListenercassandraHost - - the host to addadded - - true if added successfullyerrorMessage - - the message in case of an error (can be null otherwise)e - - exception when trying to addpublic void onRemoveHost(CassandraHost cassandraHost, boolean removed, String message)
ConnectionManagerListenerCassandraHost was triggeredonRemoveHost in interface ConnectionManagerListenercassandraHost - - the host to removeremoved - - true if successfully removedmessage - - the message received with the actionpublic String getName()
getName in interface ConnectionManagerListenerCopyright © 2014. All Rights Reserved.