Package org.HdrHistogram
Interface HistogramLogScanner.EventHandler
-
- Enclosing class:
- HistogramLogScanner
public static interface HistogramLogScanner.EventHandler
Handles log events, return true to stop processing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onBaseTime(double secondsSinceEpoch)
boolean
onComment(java.lang.String comment)
boolean
onException(java.lang.Throwable t)
boolean
onHistogram(java.lang.String tag, double timestamp, double length, HistogramLogScanner.EncodableHistogramSupplier lazyReader)
A lazy reader is provided to allow fast skipping of bulk of work where tag or timestamp are to be used as a basis for filtering theEncodableHistogram
anyway.boolean
onStartTime(double secondsSinceEpoch)
-
-
-
Method Detail
-
onComment
boolean onComment(java.lang.String comment)
-
onBaseTime
boolean onBaseTime(double secondsSinceEpoch)
-
onStartTime
boolean onStartTime(double secondsSinceEpoch)
-
onHistogram
boolean onHistogram(java.lang.String tag, double timestamp, double length, HistogramLogScanner.EncodableHistogramSupplier lazyReader)
A lazy reader is provided to allow fast skipping of bulk of work where tag or timestamp are to be used as a basis for filtering theEncodableHistogram
anyway. The reader is to be called only once.- Parameters:
tag
- histogram tag or null if none existtimestamp
- logged timestamplength
- logged interval lengthlazyReader
- to be called if the histogram needs to be deserialized, given the tag/timestamp etc.- Returns:
- true to stop processing, false to continue.
-
onException
boolean onException(java.lang.Throwable t)
-
-