Class CrawlerMetricsImpl
java.lang.Object
com.norconex.crawler.core.metrics.CrawlerMetricsImpl
- All Implemented Interfaces:
CrawlerMetrics,CrawlerMetricsMXBean,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()Flushes the metrics.longlonglonglongvoidincrementCounter(String eventName, long incrementBy) voidinit(CrawlerSession crawlSession) booleanisClosed()
-
Constructor Details
-
CrawlerMetricsImpl
public CrawlerMetricsImpl()
-
-
Method Details
-
init
- Specified by:
initin interfaceCrawlerMetrics
-
incrementCounter
-
getEventCounts
- Specified by:
getEventCountsin interfaceCrawlerMetricsMXBean
-
getProcessingCount
public long getProcessingCount()- Specified by:
getProcessingCountin interfaceCrawlerMetricsMXBean
-
getProcessedCount
public long getProcessedCount()- Specified by:
getProcessedCountin interfaceCrawlerMetricsMXBean
-
getQueuedCount
public long getQueuedCount()- Specified by:
getQueuedCountin interfaceCrawlerMetricsMXBean
-
getBaselineCount
public long getBaselineCount()- Specified by:
getBaselineCountin interfaceCrawlerMetricsMXBean
-
isClosed
public boolean isClosed() -
flush
public void flush()Description copied from interface:CrawlerMetricsFlushes the metrics. Implementation specific, but normally forces a commit of any buffered event to storage and/or the synchronization of metrics across nodes.- Specified by:
flushin interfaceCrawlerMetrics
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCrawlerMetrics
-