Search in sources :

Example 1 with INotificationConsumer

use of org.apache.cassandra.notifications.INotificationConsumer in project eiger by wlloyd.

the class DataTracker method notifyAdded.

public void notifyAdded(SSTableReader added) {
    for (INotificationConsumer subscriber : subscribers) {
        INotification notification = new SSTableAddedNotification(added);
        subscriber.handleNotification(notification, this);
    }
}
Also used : INotificationConsumer(org.apache.cassandra.notifications.INotificationConsumer) INotification(org.apache.cassandra.notifications.INotification) SSTableAddedNotification(org.apache.cassandra.notifications.SSTableAddedNotification)

Example 2 with INotificationConsumer

use of org.apache.cassandra.notifications.INotificationConsumer in project eiger by wlloyd.

the class DataTracker method notifySSTablesChanged.

public void notifySSTablesChanged(Iterable<SSTableReader> removed, Iterable<SSTableReader> added) {
    for (INotificationConsumer subscriber : subscribers) {
        INotification notification = new SSTableListChangedNotification(added, removed);
        subscriber.handleNotification(notification, this);
    }
}
Also used : INotificationConsumer(org.apache.cassandra.notifications.INotificationConsumer) SSTableListChangedNotification(org.apache.cassandra.notifications.SSTableListChangedNotification) INotification(org.apache.cassandra.notifications.INotification)

Aggregations

INotification (org.apache.cassandra.notifications.INotification)2 INotificationConsumer (org.apache.cassandra.notifications.INotificationConsumer)2 SSTableAddedNotification (org.apache.cassandra.notifications.SSTableAddedNotification)1 SSTableListChangedNotification (org.apache.cassandra.notifications.SSTableListChangedNotification)1