public class StatusDataPersister extends FastBatchPersister<Object[]> implements org.lsst.ccs.messaging.StatusMessageListener, org.lsst.ccs.messaging.AgentPresenceListener, org.lsst.ccs.services.DataProviderDictionaryService.DataProviderDictionaryListener
alertService, ingQueueSize, ingThreadsPoolSize, log, periodicTaskService, rq| Constructor and Description |
|---|
StatusDataPersister() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
void |
dataProviderDictionaryUpdate(org.lsst.ccs.services.DataProviderDictionaryService.DataProviderDictionaryEvent evt) |
void |
disconnected(org.lsst.ccs.bus.data.AgentInfo... agents) |
static DataGroup |
getDataGroup(String agentName,
String groupName,
Session sess) |
StatDataAccumulator |
getStatAccumulator() |
static List<StatDesc> |
getStatDescs(DataDesc dd,
Session sess,
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,
Session sess)
Here is where the dataDescs must be resolved.
|
void |
postInit() |
void |
processEncodedData(String source,
org.lsst.ccs.bus.data.KeyValueDataList encodedData) |
void |
shutdown() |
void |
updateDataLastUpdate() |
addToQueue, getBatchProcessingPeriod, newFixedThreadPoolBoundedQueue, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclebuild in class FastBatchPersister<Object[]>public void updateDataLastUpdate()
public void init()
init in interface org.lsst.ccs.framework.HasLifecycleinit in class BatchPersister<Object[]>public void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void shutdown()
shutdown in interface org.lsst.ccs.framework.HasLifecycleshutdown in class BatchPersister<Object[]>public void disconnected(org.lsst.ccs.bus.data.AgentInfo... agents)
disconnected in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void dataProviderDictionaryUpdate(org.lsst.ccs.services.DataProviderDictionaryService.DataProviderDictionaryEvent evt)
dataProviderDictionaryUpdate in interface org.lsst.ccs.services.DataProviderDictionaryService.DataProviderDictionaryListenerpublic 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 StatDataAccumulator getStatAccumulator()
public void persist(Object[] obj, Session sess)
persist in class BatchPersister<Object[]>obj - sess - Copyright © 2023 LSST. All rights reserved.