|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.connection.ConnectionManagerEmptyListener
public abstract class ConnectionManagerEmptyListener
an Empty implementation of ConnectionManagerListener
can be extended if you need only some of the events
| Constructor Summary | |
|---|---|
ConnectionManagerEmptyListener()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionManagerEmptyListener()
| Method Detail |
|---|
public void onHostDown(CassandraHost cassandraHost)
ConnectionManagerListenerCassandraHost was detected as down
onHostDown 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 fire
onHostRestored in interface ConnectionManagerListenercassandraHost - - the restored hostpublic void onAllHostsDown()
ConnectionManagerListenerCassandraHostRetryService detects that all nodes are down
CassandraHostRetryService must be enabled for this event to fire
onAllHostsDown in interface ConnectionManagerListener
public void onSuspendHost(CassandraHost cassandraHost,
boolean removed)
ConnectionManagerListener
onSuspendHost in interface ConnectionManagerListenercassandraHost - - the host to be suspendedremoved - - true if was successfully suspended
public void onUnSuspendHost(CassandraHost cassandraHost,
boolean readded)
ConnectionManagerListener
onUnSuspendHost in interface ConnectionManagerListenercassandraHost - - the host to be un-suspendedreadded - - true if was successfully un-suspended
public void onAddHost(CassandraHost cassandraHost,
boolean added,
String errorMessage,
Exception e)
ConnectionManagerListenerCassandraHost was triggered
onAddHost 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 add
public void onRemoveHost(CassandraHost cassandraHost,
boolean removed,
String message)
ConnectionManagerListenerCassandraHost was triggered
onRemoveHost in interface ConnectionManagerListenercassandraHost - - the host to removeremoved - - true if successfully removedmessage - - the message received with the actionpublic String getName()
getName in interface ConnectionManagerListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||