public class HistoIntervalLogger extends CapabilityHook<HdrDeltaHistogramAttachment> implements Runnable
EncodableHistograms are written the configured
logfile at the configured interval.| Constructor and Description |
|---|
HistoIntervalLogger(String sessionName,
File file,
Pattern pattern,
long intervalLength) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<HdrDeltaHistogramAttachment> |
getCapabilityClass() |
long |
getInterval() |
boolean |
matches(String metricName) |
void |
onCapableAdded(String name,
HdrDeltaHistogramAttachment chainedHistogram) |
void |
onCapableRemoved(String name,
HdrDeltaHistogramAttachment capable) |
void |
run() |
void |
startLogging()
By convention, it is typical for the logging application
to use a comment to indicate the logging application at the head
of the log, followed by the log format version, a startLogging time,
and a legend (in that order).
|
String |
toString() |
onCounterAdded, onCounterRemoved, onGaugeAdded, onGaugeRemoved, onHistogramAdded, onHistogramRemoved, onMeterAdded, onMeterRemoved, onTimerAdded, onTimerRemovedpublic boolean matches(String metricName)
public void startLogging()
public long getInterval()
public void onCapableAdded(String name, HdrDeltaHistogramAttachment chainedHistogram)
onCapableAdded in class CapabilityHook<HdrDeltaHistogramAttachment>public void onCapableRemoved(String name, HdrDeltaHistogramAttachment capable)
onCapableRemoved in class CapabilityHook<HdrDeltaHistogramAttachment>protected Class<HdrDeltaHistogramAttachment> getCapabilityClass()
getCapabilityClass in class CapabilityHook<HdrDeltaHistogramAttachment>Copyright © 2017. All rights reserved.