Cassandra state listener.

Abstract
Actual state listener implementations don’t need to inherit from this class as long as they conform to its interface. This class exists solely for documentation purposes
See Also:

Inherits

Object

Methods

host_up

(host)

This method is called whenever a host is considered to be up, whether by Cassandra’s gossip exchange or when the driver has successfully established a connection to it.

Void
Return value of this method is ignored.
Parameters:
Name Type Details
host Host a host instance

host_down

(host)

This method is called whenever a host is considered to be down, whether by Cassandra’s gossip exchange or when the driver failed to establish any connections to it.

Void
Return value of this method is ignored.
Parameters:
Name Type Details
host Host a host instance

host_found

(host)

This method is called whenever a host is discovered by the driver, whether because it is a completely new node or if its Host#datacenter or Host#rack have changed.

Void
Return value of this method is ignored.
Parameters:
Name Type Details
host Host a host instance

host_lost

(host)

This method is called whenever a host leaves the cluster, whether because it is completely gone or if its Host#datacenter or Host#rack have changed.

Void
Return value of this method is ignored.
Parameters:
Name Type Details
host Host a host instance

keyspace_created

(keyspace)

This method is called whenever a new keyspace is created.

Void
Return value of this method is ignored.
Parameters:
Name Type Details
keyspace Keyspace a keyspace instance

keyspace_changed

(keyspace)

This method is called whenever an existing keyspace is changed. This happens when a new table is created or an existing table is dropped or altered.

Void
Return value of this method is ignored.
Parameters:
Name Type Details
keyspace Keyspace a keyspace instance

keyspace_dropped

(keyspace)

This method is called whenever an existing keyspace is dropped.

Void
Return value of this method is ignored.
Parameters:
Name Type Details
keyspace Keyspace a keyspace instance