@Singleton public class MongoDBProcessingStatusRecorderService extends com.google.common.util.concurrent.AbstractIdleService implements ProcessingStatusRecorder
| Constructor and Description |
|---|
MongoDBProcessingStatusRecorderService(DBProcessingStatusService dbService,
com.google.common.eventbus.EventBus eventBus,
ServerStatus serverStatus,
com.codahale.metrics.MetricRegistry metricRegistry,
com.github.joschi.jadconfig.util.Duration persistInterval,
ScheduledExecutorService scheduler) |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
getIngestReceiveTime() |
double |
getJournalInfoReadMessages1mRate() |
long |
getJournalInfoUncommittedEntries() |
double |
getJournalInfoWrittenMessages1mRate() |
Lifecycle |
getNodeLifecycleStatus()
Returns the node
Lifecycle status for the node. |
org.joda.time.DateTime |
getPostIndexingReceiveTime() |
org.joda.time.DateTime |
getPostProcessingReceiveTime() |
void |
handleServerShutdown(Lifecycle lifecycle) |
protected void |
shutDown() |
protected void |
startUp() |
void |
updateIngestReceiveTime(org.joda.time.DateTime newTimestamp)
Update the receive time for the "ingest" measurement point.
|
void |
updatePostIndexingReceiveTime(org.joda.time.DateTime newTimestamp)
Update receive time for the "post-indexing" measurement point.
|
void |
updatePostProcessingReceiveTime(org.joda.time.DateTime newTimestamp)
Update the receive time for the "post-processing" measurement point.
|
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString@Inject public MongoDBProcessingStatusRecorderService(DBProcessingStatusService dbService, com.google.common.eventbus.EventBus eventBus, ServerStatus serverStatus, com.codahale.metrics.MetricRegistry metricRegistry, @Named(value="processing_status_persist_interval") com.github.joschi.jadconfig.util.Duration persistInterval, @Named(value="daemonScheduler") ScheduledExecutorService scheduler)
public void handleServerShutdown(Lifecycle lifecycle)
protected void startUp()
startUp in class com.google.common.util.concurrent.AbstractIdleServiceprotected void shutDown()
shutDown in class com.google.common.util.concurrent.AbstractIdleServicepublic Lifecycle getNodeLifecycleStatus()
ProcessingStatusRecorderLifecycle status for the node.getNodeLifecycleStatus in interface ProcessingStatusRecorderpublic org.joda.time.DateTime getIngestReceiveTime()
getIngestReceiveTime in interface ProcessingStatusRecorderpublic org.joda.time.DateTime getPostProcessingReceiveTime()
getPostProcessingReceiveTime in interface ProcessingStatusRecorderpublic org.joda.time.DateTime getPostIndexingReceiveTime()
getPostIndexingReceiveTime in interface ProcessingStatusRecorderpublic long getJournalInfoUncommittedEntries()
getJournalInfoUncommittedEntries in interface ProcessingStatusRecorderpublic double getJournalInfoReadMessages1mRate()
getJournalInfoReadMessages1mRate in interface ProcessingStatusRecorderpublic double getJournalInfoWrittenMessages1mRate()
getJournalInfoWrittenMessages1mRate in interface ProcessingStatusRecorderpublic void updateIngestReceiveTime(org.joda.time.DateTime newTimestamp)
ProcessingStatusRecorderupdateIngestReceiveTime in interface ProcessingStatusRecordernewTimestamp - the new timestamp to recordpublic void updatePostProcessingReceiveTime(org.joda.time.DateTime newTimestamp)
ProcessingStatusRecorderupdatePostProcessingReceiveTime in interface ProcessingStatusRecordernewTimestamp - the new timestamp to recordpublic void updatePostIndexingReceiveTime(org.joda.time.DateTime newTimestamp)
ProcessingStatusRecorderupdatePostIndexingReceiveTime in interface ProcessingStatusRecordernewTimestamp - the new timestamp to recordCopyright © 2012–2021 Graylog, Inc.. All rights reserved.