public abstract class TrendingSource extends Object
This class accepts registration of listeners that are notified whenever the list of trending channels available from this source changes.
| Modifier and Type | Class and Description |
|---|---|
static class |
TrendingSource.Event
An event fired by
TrendingSource to notify listeners of changes. |
static interface |
TrendingSource.Listener
Interface to be implemented by classes that should be notified of changes in
TrendingSources. |
| Constructor and Description |
|---|
TrendingSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TrendingSource.Listener listener) |
protected void |
fireEvent(List<TrendingChannel> removedChannels,
List<TrendingChannel> addedChannels) |
abstract TrendData |
get(TrendingChannel channel,
long begin,
long end,
EnumSet<Trend.Meta> metadata,
TrendData history)
Returns the time history data for the specified channel.
|
abstract List<TrendingChannel> |
getChannels()
Returns a list of data channels accessible through this source.
|
void |
removeListener(TrendingSource.Listener listener) |
public abstract List<TrendingChannel> getChannels()
public abstract TrendData get(TrendingChannel channel, long begin, long end, EnumSet<Trend.Meta> metadata, TrendData history)
TrendData may be created.channel - The channel.begin - Beginning of the time window.end - End of the time window.metadata - Metadata data to be included.history - Known history for this channel.null if this source does not provide data for the specified channel.public void addListener(TrendingSource.Listener listener)
public void removeListener(TrendingSource.Listener listener)
protected void fireEvent(List<TrendingChannel> removedChannels, List<TrendingChannel> addedChannels)
Copyright © 2018 LSST. All rights reserved.