Package org.apache.cassandra.schema
Class SchemaChangeNotifier
- java.lang.Object
-
- org.apache.cassandra.schema.SchemaChangeNotifier
-
public class SchemaChangeNotifier extends java.lang.ObjectRegisters 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 voidnotifyKeyspaceAltered(KeyspaceMetadata.KeyspaceDiff delta, boolean dropData)voidnotifyKeyspaceCreated(KeyspaceMetadata keyspace)voidnotifyKeyspaceDropped(KeyspaceMetadata keyspace, boolean dropData)voidnotifyPreChanges(SchemaTransformation.SchemaTransformationResult transformationResult)voidregisterListener(SchemaChangeListener listener)voidunregisterListener(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)
-
-