public class CompoundTrendingSource extends TrendingSource
TrendingSources into a single source.
If a channel is available from more than one constituent source, there is no guarantees
regarding the choice of the source that will be used to retrieve TrendData for
that channel.
TrendingSource.Event, TrendingSource.Listener| Constructor and Description |
|---|
CompoundTrendingSource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(List<TrendingSource> sourcesToAdd) |
boolean |
add(TrendingSource source) |
boolean |
clear() |
TrendData |
get(TrendingChannel channel,
long begin,
long end,
EnumSet<Trend.Meta> extra,
TrendData data)
Returns the time history data for the specified channel.
|
ArrayList<TrendingChannel> |
getChannels()
Returns a list of data channels accessible through this source.
|
boolean |
remove(List<TrendingSource> sourcesToRemove) |
boolean |
remove(TrendingSource source) |
boolean |
set(List<TrendingSource> sourcesToSet) |
boolean |
set(TrendingSource source) |
addListener, fireEvent, removeListenerpublic ArrayList<TrendingChannel> getChannels()
TrendingSourcegetChannels in class TrendingSourcepublic TrendData get(TrendingChannel channel, long begin, long end, EnumSet<Trend.Meta> extra, TrendData data)
TrendingSourceTrendData may be created.get in class TrendingSourcechannel - The channel.begin - Beginning of the time window.end - End of the time window.extra - Metadata data to be included.data - Known history for this channel.null if this source does not provide data for the specified channel.public boolean add(TrendingSource source)
public boolean add(List<TrendingSource> sourcesToAdd)
public boolean remove(TrendingSource source)
public boolean remove(List<TrendingSource> sourcesToRemove)
public boolean set(TrendingSource source)
public boolean set(List<TrendingSource> sourcesToSet)
public boolean clear()
Copyright © 2018 LSST. All rights reserved.