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 java.lang.Object implements SchemaChangeListener, IEndpointLifecycleSubscriber
-
-
Constructor Summary
Constructors Constructor Description EventNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAlterAggregate(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, wait
-
Methods inherited from interface org.apache.cassandra.schema.SchemaChangeListener
onAlterView, onCreateView, onDropView, onPreAlterTable, onPreAlterView
-
-
-
-
Method Detail
-
onJoinCluster
public void onJoinCluster(InetAddressAndPort endpoint)
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
public void onLeaveCluster(InetAddressAndPort endpoint)
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
public void onMove(InetAddressAndPort endpoint)
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
public void onUp(InetAddressAndPort endpoint)
Description copied from interface:IEndpointLifecycleSubscriberCalled when a node is marked UP.- Specified by:
onUpin interfaceIEndpointLifecycleSubscriber- Parameters:
endpoint- the endpoint marked UP.
-
onDown
public void onDown(InetAddressAndPort endpoint)
Description copied from interface:IEndpointLifecycleSubscriberCalled when a node is marked DOWN.- Specified by:
onDownin interfaceIEndpointLifecycleSubscriber- Parameters:
endpoint- the endpoint marked DOWN.
-
onCreateKeyspace
public void onCreateKeyspace(KeyspaceMetadata keyspace)
- Specified by:
onCreateKeyspacein interfaceSchemaChangeListener
-
onCreateTable
public void onCreateTable(TableMetadata table)
- Specified by:
onCreateTablein interfaceSchemaChangeListener
-
onCreateType
public void onCreateType(UserType type)
- Specified by:
onCreateTypein interfaceSchemaChangeListener
-
onCreateFunction
public void onCreateFunction(UDFunction function)
- Specified by:
onCreateFunctionin interfaceSchemaChangeListener
-
onCreateAggregate
public void onCreateAggregate(UDAggregate aggregate)
- Specified by:
onCreateAggregatein interfaceSchemaChangeListener
-
onAlterKeyspace
public void onAlterKeyspace(KeyspaceMetadata before, KeyspaceMetadata after)
- Specified by:
onAlterKeyspacein interfaceSchemaChangeListener
-
onAlterTable
public void onAlterTable(TableMetadata before, TableMetadata after, boolean affectsStatements)
- Specified by:
onAlterTablein interfaceSchemaChangeListener
-
onAlterType
public void onAlterType(UserType before, UserType after)
- Specified by:
onAlterTypein interfaceSchemaChangeListener
-
onAlterFunction
public void onAlterFunction(UDFunction before, UDFunction after)
- Specified by:
onAlterFunctionin interfaceSchemaChangeListener
-
onAlterAggregate
public void onAlterAggregate(UDAggregate before, UDAggregate after)
- Specified by:
onAlterAggregatein interfaceSchemaChangeListener
-
onDropKeyspace
public void onDropKeyspace(KeyspaceMetadata keyspace, boolean dropData)
- Specified by:
onDropKeyspacein interfaceSchemaChangeListener
-
onDropTable
public void onDropTable(TableMetadata table, boolean dropData)
- Specified by:
onDropTablein interfaceSchemaChangeListener
-
onDropType
public void onDropType(UserType type)
- Specified by:
onDropTypein interfaceSchemaChangeListener
-
onDropFunction
public void onDropFunction(UDFunction function)
- Specified by:
onDropFunctionin interfaceSchemaChangeListener
-
onDropAggregate
public void onDropAggregate(UDAggregate aggregate)
- Specified by:
onDropAggregatein interfaceSchemaChangeListener
-
-