public class SSTablesGlobalTracker extends java.lang.Object implements INotificationConsumer
Each table tracks its own SSTables in ColumnFamilyStore (through Tracker) for most purposes, but
this class groups information we need on all the sstables the node has.
| Constructor and Description |
|---|
SSTablesGlobalTracker(SSTableFormat.Type currentSSTableFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleNotification(INotification notification,
java.lang.Object sender) |
boolean |
register(INotificationConsumer subscriber)
Register a new subscriber to this tracker.
|
boolean |
unregister(INotificationConsumer subscriber)
Unregister a subscriber from this tracker.
|
java.util.Set<VersionAndType> |
versionsInUse()
The set of all sstable versions currently in use on this node.
|
public SSTablesGlobalTracker(SSTableFormat.Type currentSSTableFormat)
public java.util.Set<VersionAndType> versionsInUse()
public boolean register(INotificationConsumer subscriber)
SSTablesVersionsInUseChangeNotification.subscriber - the new subscriber to register. If this subscriber is already registered, this method does
nothing (meaning that even if a subscriber is registered multiple times, it will only be notified once on every
change).public boolean unregister(INotificationConsumer subscriber)
subscriber - the subscriber to unregister. If this subscriber is not registered, this method does nothing.public void handleNotification(INotification notification, java.lang.Object sender)
handleNotification in interface INotificationConsumerCopyright © 2009-2022 The Apache Software Foundation