Package org.graylog2.system.processing
Class InMemoryProcessingStatusRecorder
java.lang.Object
org.graylog2.system.processing.InMemoryProcessingStatusRecorder
- All Implemented Interfaces:
ProcessingStatusRecorder
@Singleton
public class InMemoryProcessingStatusRecorder
extends Object
implements ProcessingStatusRecorder
This
ProcessingStatusRecorder implementation should only be used for tests.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTimedoublelongdoubleReturns the nodeLifecyclestatus for the node.org.joda.time.DateTimeorg.joda.time.DateTimelongvoidupdateIngestReceiveTime(org.joda.time.DateTime newTimestamp) Update the receive time for the "ingest" measurement point.voidupdatePostIndexingReceiveTime(org.joda.time.DateTime newTimestamp) Update receive time for the "post-indexing" measurement point.voidupdatePostProcessingReceiveTime(org.joda.time.DateTime newTimestamp) Update the receive time for the "post-processing" measurement point.
-
Constructor Details
-
InMemoryProcessingStatusRecorder
public InMemoryProcessingStatusRecorder()
-
-
Method Details
-
getNodeLifecycleStatus
Description copied from interface:ProcessingStatusRecorderReturns the nodeLifecyclestatus for the node.- Specified by:
getNodeLifecycleStatusin interfaceProcessingStatusRecorder- Returns:
- the node lifecycle status
-
getIngestReceiveTime
public org.joda.time.DateTime getIngestReceiveTime()- Specified by:
getIngestReceiveTimein interfaceProcessingStatusRecorder
-
getPostProcessingReceiveTime
public org.joda.time.DateTime getPostProcessingReceiveTime()- Specified by:
getPostProcessingReceiveTimein interfaceProcessingStatusRecorder
-
getPostIndexingReceiveTime
public org.joda.time.DateTime getPostIndexingReceiveTime()- Specified by:
getPostIndexingReceiveTimein interfaceProcessingStatusRecorder
-
getJournalInfoUncommittedEntries
public long getJournalInfoUncommittedEntries()- Specified by:
getJournalInfoUncommittedEntriesin interfaceProcessingStatusRecorder
-
getJournalInfoReadMessages1mRate
public double getJournalInfoReadMessages1mRate()- Specified by:
getJournalInfoReadMessages1mRatein interfaceProcessingStatusRecorder
-
getJournalInfoWrittenMessages1mRate
public double getJournalInfoWrittenMessages1mRate()- Specified by:
getJournalInfoWrittenMessages1mRatein interfaceProcessingStatusRecorder
-
getProcessBufferUsage
public long getProcessBufferUsage()- Specified by:
getProcessBufferUsagein interfaceProcessingStatusRecorder
-
updateIngestReceiveTime
public void updateIngestReceiveTime(org.joda.time.DateTime newTimestamp) Description copied from interface:ProcessingStatusRecorderUpdate the receive time for the "ingest" measurement point. This is done right before a raw messages gets written to the disk journal.- Specified by:
updateIngestReceiveTimein interfaceProcessingStatusRecorder- Parameters:
newTimestamp- the new timestamp to record
-
updatePostProcessingReceiveTime
public void updatePostProcessingReceiveTime(org.joda.time.DateTime newTimestamp) Description copied from interface:ProcessingStatusRecorderUpdate the receive time for the "post-processing" measurement point. This is done right after all message processors have run.- Specified by:
updatePostProcessingReceiveTimein interfaceProcessingStatusRecorder- Parameters:
newTimestamp- the new timestamp to record
-
updatePostIndexingReceiveTime
public void updatePostIndexingReceiveTime(org.joda.time.DateTime newTimestamp) Description copied from interface:ProcessingStatusRecorderUpdate receive time for the "post-indexing" measurement point. This is done right after messages have been written to Elasticsearch.- Specified by:
updatePostIndexingReceiveTimein interfaceProcessingStatusRecorder- Parameters:
newTimestamp- the new timestamp to record
-