
public class LocaldbFacade extends Object
| Modifier and Type | Method and Description |
|---|---|
static AgentDesc |
getAgentDesc(org.lsst.ccs.bus.data.AgentInfo agentInfo,
org.hibernate.Session sess)
Returns the persistent AgentDesc corresponding to the AgentInfo.
|
static AgentState |
getAgentState(AgentDesc ad,
org.lsst.ccs.bus.states.StateBundle sb,
org.hibernate.Session sess)
Returns the AgentState corresponding to the given stateBundle.
|
static AlertDesc |
getAlertDesc(AgentDesc agentDesc,
String alertId,
org.hibernate.Session sess)
Looks for a persisted AlertDesc corresponding to the given parameters.
|
static AlertDesc |
getAlertDescOrPersist(AgentDesc agentDesc,
org.lsst.ccs.bus.data.Alert alert,
org.hibernate.Session sess) |
static StatData |
getStatDataOrNull(StatDesc sd,
StatTimeInterval sti,
org.hibernate.Session sess)
Retrieves a StatData entity corresponding to the given
StatDesc and
StatTimeInterval. |
static StatTimeInterval |
getStatTimeInterval(long binWidth,
long dataTime,
org.hibernate.Session sess) |
public static AgentDesc getAgentDesc(org.lsst.ccs.bus.data.AgentInfo agentInfo, org.hibernate.Session sess)
agentInfo - sess - public static AlertDesc getAlertDescOrPersist(AgentDesc agentDesc, org.lsst.ccs.bus.data.Alert alert, org.hibernate.Session sess)
agentDesc - alert - sess - public static AlertDesc getAlertDesc(AgentDesc agentDesc, String alertId, org.hibernate.Session sess)
agentDesc - alertId - sess - public static AgentState getAgentState(AgentDesc ad, org.lsst.ccs.bus.states.StateBundle sb, org.hibernate.Session sess)
ad - the agent description in persisted state.sb - the StateBundle to be persisted.sess - the current session.public static StatTimeInterval getStatTimeInterval(long binWidth, long dataTime, org.hibernate.Session sess)
public static StatData getStatDataOrNull(StatDesc sd, StatTimeInterval sti, org.hibernate.Session sess)
StatDesc and
StatTimeInterval.sd - The StatDesc entitysti - the StatTimeIntervalCopyright © 2020 LSST. All rights reserved.