
public class LocaldbFacade extends Object
| Modifier and Type | Method and Description |
|---|---|
static AgentDesc |
getAgentDesc(org.lsst.ccs.bus.data.AgentInfo agentInfo,
Session sess)
Returns the persistent AgentDesc corresponding to the AgentInfo.
|
static AgentState |
getAgentState(org.lsst.ccs.bus.data.AgentInfo ai,
org.lsst.ccs.bus.states.StateBundle sb,
Session sess)
Returns the AgentState corresponding to the given stateBundle.
|
static AlertDesc |
getAlertDesc(AgentDesc agentDesc,
String alertId,
Session sess)
Looks for a persisted AlertDesc corresponding to the given parameters.
|
static AlertDesc |
getAlertDescOrPersist(AgentDesc agentDesc,
org.lsst.ccs.bus.data.Alert alert,
Session sess) |
static BaseState |
getBaseState(org.lsst.ccs.bus.states.StateBundle sb,
Session sess)
Returns a persisted BaseState corresponding to the given StateBundle.
|
static InnerStateDesc |
getInnerStateDesc(org.lsst.ccs.bus.data.AgentInfo ai,
String enumClassName,
String enumValue,
Session sess)
Returns a persisted InnerStateDesc corresponding to the given parameters.
|
static StatTimeInterval |
getStatTimeInterval(long binWidth,
long dataTime,
Session sess) |
public static AgentDesc getAgentDesc(org.lsst.ccs.bus.data.AgentInfo agentInfo, Session sess)
agentInfo - sess - public static AlertDesc getAlertDescOrPersist(AgentDesc agentDesc, org.lsst.ccs.bus.data.Alert alert, Session sess)
agentDesc - alert - sess - public static AlertDesc getAlertDesc(AgentDesc agentDesc, String alertId, Session sess)
agentDesc - alertId - sess - public static InnerStateDesc getInnerStateDesc(org.lsst.ccs.bus.data.AgentInfo ai, String enumClassName, String enumValue, Session sess)
ai - enumClassName - enumValue - sess - public static BaseState getBaseState(org.lsst.ccs.bus.states.StateBundle sb, Session sess)
sb - sess - public static AgentState getAgentState(org.lsst.ccs.bus.data.AgentInfo ai, org.lsst.ccs.bus.states.StateBundle sb, Session sess)
ai - sb - sess - public static StatTimeInterval getStatTimeInterval(long binWidth, long dataTime, Session sess)
Copyright © 2017 LSST. All rights reserved.