Class HistoStatsLogger

All Implemented Interfaces:
com.codahale.metrics.MetricRegistryListener, NBComponent, NBComponentAdvisors, NBComponentEvents, NBComponentMetrics, NBComponentProps, NBComponentServices, NBComponentTimeline, NBProviderSearch, NBTokenWords, MetricsCloseable, NBLabeledElement, AutoCloseable, Runnable, EventListener

public class HistoStatsLogger extends CapabilityHook<HdrDeltaHistogramAttachment> implements Runnable, MetricsCloseable
HistoIntervalLogger runs a separate thread to snapshotAndWrite encoded histograms on a regular interval. It listens to the metrics registry for any new metrics that match the pattern. Any metrics which both match the pattern and which are EncodableHistograms are written the configured logfile at the configured interval.