public static class Server.EventNotifier extends java.lang.Object implements SchemaChangeListener, IEndpointLifecycleSubscriber
Constructor and Description |
---|
EventNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
onAlterAggregate(UDAggregate before,
UDAggregate after) |
void |
onAlterFunction(UDFunction before,
UDFunction after) |
void |
onAlterKeyspace(KeyspaceMetadata before,
KeyspaceMetadata after) |
void |
onAlterTable(TableMetadata before,
TableMetadata after,
boolean affectsStatements) |
void |
onAlterType(UserType before,
UserType after) |
void |
onCreateAggregate(UDAggregate aggregate) |
void |
onCreateFunction(UDFunction function) |
void |
onCreateKeyspace(KeyspaceMetadata keyspace) |
void |
onCreateTable(TableMetadata table) |
void |
onCreateType(UserType type) |
void |
onDown(InetAddressAndPort endpoint)
Called when a node is marked DOWN.
|
void |
onDropAggregate(UDAggregate aggregate) |
void |
onDropFunction(UDFunction function) |
void |
onDropKeyspace(KeyspaceMetadata keyspace,
boolean dropData) |
void |
onDropTable(TableMetadata table,
boolean dropData) |
void |
onDropType(UserType type) |
void |
onJoinCluster(InetAddressAndPort endpoint)
Called when a new node joins the cluster, i.e.
|
void |
onLeaveCluster(InetAddressAndPort endpoint)
Called when a new node leave the cluster (decommission or removeToken).
|
void |
onMove(InetAddressAndPort endpoint)
Called when a node has moved (to a new token).
|
void |
onUp(InetAddressAndPort endpoint)
Called when a node is marked UP.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onAlterView, onCreateView, onDropView, onPreAlterTable, onPreAlterView
public void onJoinCluster(InetAddressAndPort endpoint)
IEndpointLifecycleSubscriber
onJoinCluster
in interface IEndpointLifecycleSubscriber
endpoint
- the newly added endpoint.public void onLeaveCluster(InetAddressAndPort endpoint)
IEndpointLifecycleSubscriber
onLeaveCluster
in interface IEndpointLifecycleSubscriber
endpoint
- the endpoint that is leaving.public void onMove(InetAddressAndPort endpoint)
IEndpointLifecycleSubscriber
onMove
in interface IEndpointLifecycleSubscriber
endpoint
- the endpoint that has moved.public void onUp(InetAddressAndPort endpoint)
IEndpointLifecycleSubscriber
onUp
in interface IEndpointLifecycleSubscriber
endpoint
- the endpoint marked UP.public void onDown(InetAddressAndPort endpoint)
IEndpointLifecycleSubscriber
onDown
in interface IEndpointLifecycleSubscriber
endpoint
- the endpoint marked DOWN.public void onCreateKeyspace(KeyspaceMetadata keyspace)
onCreateKeyspace
in interface SchemaChangeListener
public void onCreateTable(TableMetadata table)
onCreateTable
in interface SchemaChangeListener
public void onCreateType(UserType type)
onCreateType
in interface SchemaChangeListener
public void onCreateFunction(UDFunction function)
onCreateFunction
in interface SchemaChangeListener
public void onCreateAggregate(UDAggregate aggregate)
onCreateAggregate
in interface SchemaChangeListener
public void onAlterKeyspace(KeyspaceMetadata before, KeyspaceMetadata after)
onAlterKeyspace
in interface SchemaChangeListener
public void onAlterTable(TableMetadata before, TableMetadata after, boolean affectsStatements)
onAlterTable
in interface SchemaChangeListener
public void onAlterType(UserType before, UserType after)
onAlterType
in interface SchemaChangeListener
public void onAlterFunction(UDFunction before, UDFunction after)
onAlterFunction
in interface SchemaChangeListener
public void onAlterAggregate(UDAggregate before, UDAggregate after)
onAlterAggregate
in interface SchemaChangeListener
public void onDropKeyspace(KeyspaceMetadata keyspace, boolean dropData)
onDropKeyspace
in interface SchemaChangeListener
public void onDropTable(TableMetadata table, boolean dropData)
onDropTable
in interface SchemaChangeListener
public void onDropType(UserType type)
onDropType
in interface SchemaChangeListener
public void onDropFunction(UDFunction function)
onDropFunction
in interface SchemaChangeListener
public void onDropAggregate(UDAggregate aggregate)
onDropAggregate
in interface SchemaChangeListener
Copyright © 2009- The Apache Software Foundation