
public class StatusDataPersister extends BatchPersister<Object[]> implements org.lsst.ccs.messaging.StatusMessageListener, org.lsst.ccs.messaging.AgentPresenceListener
alertService, log| Constructor and Description |
|---|
StatusDataPersister() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
void |
connected(org.lsst.ccs.bus.data.AgentInfo... agents) |
void |
connecting(org.lsst.ccs.bus.data.AgentInfo... agents) |
void |
disconnecting(org.lsst.ccs.bus.data.AgentInfo ai) |
static DataGroup |
getDataGroup(String agentName,
String groupName,
org.hibernate.Session sess) |
StatDataPersister |
getStatAccumulator(String agentName) |
static List<StatDesc> |
getStatDescs(DataDesc dd,
org.hibernate.Session sess,
org.lsst.ccs.utilities.logging.Logger log) |
void |
init()
The constructor initializes entries in StatDesc with regards of existing
entries in DataDesc.
|
void |
onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage s) |
void |
persist(Object[] obj,
org.hibernate.Session sess)
Here is where the dataDescs must be resolved.
|
void |
processEncodedData(String source,
org.lsst.ccs.bus.data.KeyValueDataList encodedData) |
void |
shutdown() |
void |
start() |
void |
updateDataLastUpdate() |
addToQueue, newFixedThreadPoolBoundedQueue, runpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void updateDataLastUpdate()
public void init()
init in interface org.lsst.ccs.framework.HasLifecycleinit in class BatchPersister<Object[]>public void start()
start in interface org.lsst.ccs.framework.HasLifecyclepublic void shutdown()
shutdown in interface org.lsst.ccs.framework.HasLifecyclepublic void connecting(org.lsst.ccs.bus.data.AgentInfo... agents)
connecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void connected(org.lsst.ccs.bus.data.AgentInfo... agents)
connected in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void disconnecting(org.lsst.ccs.bus.data.AgentInfo ai)
disconnecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage s)
onStatusMessage in interface org.lsst.ccs.messaging.StatusMessageListenerpublic void processEncodedData(String source, org.lsst.ccs.bus.data.KeyValueDataList encodedData)
public StatDataPersister getStatAccumulator(String agentName)
public static DataGroup getDataGroup(String agentName, String groupName, org.hibernate.Session sess)
public static List<StatDesc> getStatDescs(DataDesc dd, org.hibernate.Session sess, org.lsst.ccs.utilities.logging.Logger log)
public void persist(Object[] obj, org.hibernate.Session sess)
persist in class BatchPersister<Object[]>obj - sess - Copyright © 2022 LSST. All rights reserved.