@Singleton public class DataServer extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DataServer.StatEntry |
| Constructor and Description |
|---|
DataServer() |
| Modifier and Type | Method and Description |
|---|---|
protected Data |
exportRawData(String path,
long rawId,
long t1,
long t2) |
protected Data |
exportStatDataFromRaw(String path,
long rawId,
long t1,
long t2,
int nsamples) |
protected Data |
exportStatDataFromRawNative(String path,
long rawId,
long t1,
long t2,
int nsamples) |
protected Data |
exportStatDataFromStat(String path,
StatDesc statDesc,
long t1,
long t2,
int nsamples) |
AlertEvent.AlertEventList |
getActiveAlerts(List<Long> ids)
Returns a list of active alerts.
|
AlertEvent.AlertEventList |
getAlertHistories(List<Long> ids,
long t1,
long t2)
Returns an history of alerts that have been raised within the given time
interval.
|
AlertInfo.AlertInfoList |
getAlertInfo() |
AlertInfo.AlertInfoList |
getAlertInfo(String subsystem) |
protected long |
getAvailableRawData(long rawId,
long t1,
long t2) |
protected Map<StatDesc,Long> |
getAvailableStats(long rawId,
long t1,
long t2)
Counts for each StatDesc entity associated to the given DataDesc id, how many
StatData entities span the given time interval [t1,t2[.
|
DataChannel.DataChannelList |
getChannels(long dt) |
DataChannel[] |
getChannels(String partialPath,
int level) |
DataChannel.DataChannelList |
getChannels(String subsystemName,
long dt) |
StateChange.StateChangesList |
getComponentStateChangeList(String subsystem,
String component,
List<String> states,
long t1,
long t2)
Gets the state changes events for the given list of states, between the time
interval
[t1,t2], for a given component of a subsystem. |
List<Data> |
getData(List<Long> ids,
long t1,
long t2,
String flavor,
int nbins) |
Data |
getData(long id,
long t1,
long t2,
String flavor,
int nbins) |
List<Data> |
getDataByPath(List<String> paths,
long t1,
long t2,
String flavor,
int nbins) |
TrendingData |
getLatestDataByPath(String path) |
List<ChannelMetaData> |
getMetadataForChannel(int channelId,
long t1,
long t2) |
ChannelMetaData.ChannelMetadataList |
getMetadataList(long channelId) |
TrendingPlotData.TrendingPlotDataList |
getPlotData(long id,
long t1,
long t2)
Returns a list of trended plots for the given data desc id, between the time
interval
[t1,t2]. |
List<RawData> |
getRawData(long id,
long t1,
long t2) |
org.hibernate.SessionFactory |
getSessionFactory() |
protected List<StatData> |
getStatData(StatDesc statDesc,
long t1,
long t2)
Returns the list of StatData with the given statDesc that overlap the
interval [t1,t2[.
|
StateChange.StateChangesList |
getStateChangeList(String subsystem,
List<String> states,
List<String> components,
long t1,
long t2)
Gets the state changes events for the given list of states, between the time
interval
[t1,t2], for the given subsystem. |
StateInfo.StateInfoList |
getStateInfo(String subsystem)
Lists all the existing states for a given subsystem.
|
DataSubsystem.DataSubsystemList |
getSubsystems() |
public org.hibernate.SessionFactory getSessionFactory()
public TrendingData getLatestDataByPath(String path)
public List<Data> getDataByPath(List<String> paths, long t1, long t2, String flavor, int nbins)
public List<ChannelMetaData> getMetadataForChannel(int channelId, long t1, long t2)
public ChannelMetaData.ChannelMetadataList getMetadataList(long channelId)
public DataSubsystem.DataSubsystemList getSubsystems()
public DataChannel.DataChannelList getChannels(long dt)
public DataChannel.DataChannelList getChannels(String subsystemName, long dt)
subsystemName - public DataChannel[] getChannels(String partialPath, int level)
partialPath - level - protected Map<StatDesc,Long> getAvailableStats(long rawId, long t1, long t2)
rawId - the DataDesc idt1 - t2 - protected long getAvailableRawData(long rawId,
long t1,
long t2)
protected List<StatData> getStatData(StatDesc statDesc, long t1, long t2)
statDesc - the statistical descriptiont1 - t2 - protected Data exportStatDataFromRaw(String path, long rawId, long t1, long t2, int nsamples)
protected Data exportStatDataFromRawNative(String path, long rawId, long t1, long t2, int nsamples)
protected Data exportStatDataFromStat(String path, StatDesc statDesc, long t1, long t2, int nsamples)
public StateInfo.StateInfoList getStateInfo(String subsystem)
subsystem - the subsystem name.public StateChange.StateChangesList getStateChangeList(String subsystem, List<String> states, List<String> components, long t1, long t2)
[t1,t2], for the given subsystem.subsystem - the subsystemstates - if empty, returns all state changes for all found states.components - if empty, return all state changes for all components.t1 - t2 - public StateChange.StateChangesList getComponentStateChangeList(String subsystem, String component, List<String> states, long t1, long t2)
[t1,t2], for a given component of a subsystem.subsystem - the subsystemcomponent - the component for which to list state changesstates - if empty, returns all state changes for all found statest1 - t2 - public AlertInfo.AlertInfoList getAlertInfo()
public AlertInfo.AlertInfoList getAlertInfo(String subsystem)
public AlertEvent.AlertEventList getActiveAlerts(List<Long> ids)
ids - a list of ids.public AlertEvent.AlertEventList getAlertHistories(List<Long> ids, long t1, long t2)
ids - a list of alertdesc ids.t1 - t2 - public TrendingPlotData.TrendingPlotDataList getPlotData(long id, long t1, long t2)
[t1,t2].id - the datadesc idt1 - t2 - Copyright © 2019 LSST. All rights reserved.