Package com.attivio.sysstate
Interface MetricsCollector
-
public interface MetricsCollectorAn interface describing generic metrics collection at the component level.Implementations must be thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCollectedMetrics()Call this method when when you would like the clear the contents of the metrics collected.BaseTypesMap<java.lang.String,java.lang.Object>getCollectedMetrics()Call this method when the Metrics collection is ready to be consumed.voidstartProcessingDocument(PlatformMessage msg, IngestDocument doc)Call this method when this MetricsCollector's component starts processing a document.voidstopProcessingDocument(PlatformMessage msg, IngestDocument doc, long timeSpentProcessingDocument)Call this method when this MetricsCollector's component stops processing a document.
-
-
-
Method Detail
-
startProcessingDocument
void startProcessingDocument(PlatformMessage msg, IngestDocument doc)
Call this method when this MetricsCollector's component starts processing a document.
-
stopProcessingDocument
void stopProcessingDocument(PlatformMessage msg, IngestDocument doc, long timeSpentProcessingDocument)
Call this method when this MetricsCollector's component stops processing a document.
-
getCollectedMetrics
BaseTypesMap<java.lang.String,java.lang.Object> getCollectedMetrics()
Call this method when the Metrics collection is ready to be consumed. The return value is generic enough to be adapted for a variety of data structures.
-
clearCollectedMetrics
void clearCollectedMetrics()
Call this method when when you would like the clear the contents of the metrics collected.
-
-