@Singleton public class InMemoryProcessingStatusRecorder extends Object implements ProcessingStatusRecorder
ProcessingStatusRecorder implementation should only be used for tests.| Constructor and Description |
|---|
InMemoryProcessingStatusRecorder() |
| 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 |
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.
|
public 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.