public class RestServerSource extends TrendingSource
TrendingSource.Event, TrendingSource.Listener| Constructor and Description |
|---|
RestServerSource(com.sun.jersey.api.client.WebResource server,
LsstTrendingPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
connect() |
TrendData |
get(TrendingChannel channel,
long begin,
long end,
EnumSet<Trend.Meta> metadata,
TrendData history)
Returns the time history data for the specified channel.
|
List<TrendingChannel> |
getChannels()
Returns a list of data channels accessible through this source.
|
addListener, fireEvent, removeListenerpublic RestServerSource(com.sun.jersey.api.client.WebResource server,
LsstTrendingPlugin plugin)
public boolean connect()
public List<TrendingChannel> getChannels()
TrendingSourcegetChannels in class TrendingSourcepublic TrendData get(TrendingChannel channel, long begin, long end, EnumSet<Trend.Meta> metadata, TrendData history)
TrendingSourceTrendData may be created.get in class TrendingSourcechannel - 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.Copyright © 2018 LSST. All rights reserved.