Package org.apache.cassandra.transport
Class Server.EventNotifier
java.lang.Object
org.apache.cassandra.transport.Server.EventNotifier
- All Implemented Interfaces:
SchemaChangeListener,IEndpointLifecycleSubscriber
- Enclosing class:
- Server
public static class Server.EventNotifier
extends Object
implements SchemaChangeListener, IEndpointLifecycleSubscriber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAlterAggregate(UDAggregate before, UDAggregate after) voidonAlterFunction(UDFunction before, UDFunction after) voidonAlterKeyspace(KeyspaceMetadata before, KeyspaceMetadata after) voidonAlterTable(TableMetadata before, TableMetadata after, boolean affectsStatements) voidonAlterType(UserType before, UserType after) voidonCreateAggregate(UDAggregate aggregate) voidonCreateFunction(UDFunction function) voidonCreateKeyspace(KeyspaceMetadata keyspace) voidonCreateTable(TableMetadata table) voidonCreateType(UserType type) voidonDown(InetAddressAndPort endpoint) Called when a node is marked DOWN.voidonDropAggregate(UDAggregate aggregate) voidonDropFunction(UDFunction function) voidonDropKeyspace(KeyspaceMetadata keyspace, boolean dropData) voidonDropTable(TableMetadata table, boolean dropData) voidonDropType(UserType type) voidonJoinCluster(InetAddressAndPort endpoint) Called when a new node joins the cluster, i.e.voidonLeaveCluster(InetAddressAndPort endpoint) Called when a new node leave the cluster (decommission or removeToken).voidonMove(InetAddressAndPort endpoint) Called when a node has moved (to a new token).voidonUp(InetAddressAndPort endpoint) Called when a node is marked UP.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.schema.SchemaChangeListener
onAlterView, onCreateView, onDropView, onPreAlterTable, onPreAlterView
-
Constructor Details
-
EventNotifier
public EventNotifier()
-
-
Method Details
-
onJoinCluster
Description copied from interface:IEndpointLifecycleSubscriberCalled when a new node joins the cluster, i.e. either has just been bootstrapped or "instajoins".- Specified by:
onJoinClusterin interfaceIEndpointLifecycleSubscriber- Parameters:
endpoint- the newly added endpoint.
-
onLeaveCluster
Description copied from interface:IEndpointLifecycleSubscriberCalled when a new node leave the cluster (decommission or removeToken).- Specified by:
onLeaveClusterin interfaceIEndpointLifecycleSubscriber- Parameters:
endpoint- the endpoint that is leaving.
-
onMove
Description copied from interface:IEndpointLifecycleSubscriberCalled when a node has moved (to a new token).- Specified by:
onMovein interfaceIEndpointLifecycleSubscriber- Parameters:
endpoint- the endpoint that has moved.
-
onUp
Description copied from interface:IEndpointLifecycleSubscriberCalled when a node is marked UP.- Specified by:
onUpin interfaceIEndpointLifecycleSubscriber- Parameters:
endpoint- the endpoint marked UP.
-
onDown
Description copied from interface:IEndpointLifecycleSubscriberCalled when a node is marked DOWN.- Specified by:
onDownin interfaceIEndpointLifecycleSubscriber- Parameters:
endpoint- the endpoint marked DOWN.
-
onCreateKeyspace
- Specified by:
onCreateKeyspacein interfaceSchemaChangeListener
-
onCreateTable
- Specified by:
onCreateTablein interfaceSchemaChangeListener
-
onCreateType
- Specified by:
onCreateTypein interfaceSchemaChangeListener
-
onCreateFunction
- Specified by:
onCreateFunctionin interfaceSchemaChangeListener
-
onCreateAggregate
- Specified by:
onCreateAggregatein interfaceSchemaChangeListener
-
onAlterKeyspace
- Specified by:
onAlterKeyspacein interfaceSchemaChangeListener
-
onAlterTable
- Specified by:
onAlterTablein interfaceSchemaChangeListener
-
onAlterType
- Specified by:
onAlterTypein interfaceSchemaChangeListener
-
onAlterFunction
- Specified by:
onAlterFunctionin interfaceSchemaChangeListener
-
onAlterAggregate
- Specified by:
onAlterAggregatein interfaceSchemaChangeListener
-
onDropKeyspace
- Specified by:
onDropKeyspacein interfaceSchemaChangeListener
-
onDropTable
- Specified by:
onDropTablein interfaceSchemaChangeListener
-
onDropType
- Specified by:
onDropTypein interfaceSchemaChangeListener
-
onDropFunction
- Specified by:
onDropFunctionin interfaceSchemaChangeListener
-
onDropAggregate
- Specified by:
onDropAggregatein interfaceSchemaChangeListener
-