Package org.apache.cassandra.schema
Class SchemaChangeNotifier
- java.lang.Object
-
- org.apache.cassandra.schema.SchemaChangeNotifier
-
public class SchemaChangeNotifier extends java.lang.Object
Registers schema change listeners and sends the notifications. The interface of this class just takes the high level keyspace metadata changes. It iterates over all keyspaces elements and distributes appropriate notifications about changes around those elements (tables, views, types, functions).
-
-
Constructor Summary
Constructors Constructor Description SchemaChangeNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyKeyspaceAltered(KeyspaceMetadata.KeyspaceDiff delta, boolean dropData)
void
notifyKeyspaceCreated(KeyspaceMetadata keyspace)
void
notifyKeyspaceDropped(KeyspaceMetadata keyspace, boolean dropData)
void
notifyPreChanges(SchemaTransformation.SchemaTransformationResult transformationResult)
void
registerListener(SchemaChangeListener listener)
void
unregisterListener(SchemaChangeListener listener)
-
-
-
Method Detail
-
registerListener
public void registerListener(SchemaChangeListener listener)
-
unregisterListener
public void unregisterListener(SchemaChangeListener listener)
-
notifyKeyspaceCreated
public void notifyKeyspaceCreated(KeyspaceMetadata keyspace)
-
notifyKeyspaceAltered
public void notifyKeyspaceAltered(KeyspaceMetadata.KeyspaceDiff delta, boolean dropData)
-
notifyKeyspaceDropped
public void notifyKeyspaceDropped(KeyspaceMetadata keyspace, boolean dropData)
-
notifyPreChanges
public void notifyPreChanges(SchemaTransformation.SchemaTransformationResult transformationResult)
-
-