public class ChronicleHistoryReader extends Object implements HistoryReader, Closeable
Modifier and Type | Field and Description |
---|---|
protected Path |
basePath |
protected long |
counter |
protected long |
firstTimeStampNanos |
protected Map<String,net.openhft.chronicle.core.util.Histogram> |
histos |
protected boolean |
histosByMethod |
protected Supplier<net.openhft.chronicle.core.util.Histogram> |
histoSupplier |
protected long |
ignore |
protected int |
lastHistosSize |
protected long |
lastWindowCount |
protected long |
measurementWindowNanos |
protected Consumer<String> |
messageSink |
protected boolean |
progress |
protected Long |
startIndex |
protected int |
summaryOutputOffset |
protected ExcerptTailer |
tailer |
protected TimeUnit |
timeUnit |
Constructor and Description |
---|
ChronicleHistoryReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected @NotNull ChronicleQueue |
createQueue() |
void |
execute() |
protected @NotNull net.openhft.chronicle.core.util.Histogram |
histogram() |
void |
outputData() |
protected net.openhft.chronicle.wire.WireParselet |
parselet() |
protected void |
processMessage(CharSequence methodName,
net.openhft.chronicle.wire.MessageHistory history) |
Map<String,net.openhft.chronicle.core.util.Histogram> |
readChronicle()
Read until the end of the queue, accumulating latency histograms.
|
protected void |
windowPassed() |
ChronicleHistoryReader |
withBasePath(Path path) |
ChronicleHistoryReader |
withHistosByMethod(boolean b) |
ChronicleHistoryReader |
withHistoSupplier(Supplier<net.openhft.chronicle.core.util.Histogram> histoSupplier) |
ChronicleHistoryReader |
withIgnore(long ignore) |
ChronicleHistoryReader |
withMeasurementWindow(long measurementWindow) |
ChronicleHistoryReader |
withMessageSink(Consumer<String> messageSink) |
ChronicleHistoryReader |
withProgress(boolean p) |
ChronicleHistoryReader |
withStartIndex(long startIndex)
set the index to start at
|
ChronicleHistoryReader |
withSummaryOutput(int offset) |
ChronicleHistoryReader |
withTimeUnit(TimeUnit p) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create
protected Path basePath
protected boolean progress
protected TimeUnit timeUnit
protected boolean histosByMethod
protected long ignore
protected long counter
protected long measurementWindowNanos
protected long firstTimeStampNanos
protected long lastWindowCount
protected int summaryOutputOffset
protected Long startIndex
protected Supplier<net.openhft.chronicle.core.util.Histogram> histoSupplier
protected int lastHistosSize
protected ExcerptTailer tailer
public ChronicleHistoryReader withMessageSink(Consumer<String> messageSink)
withMessageSink
in interface HistoryReader
public ChronicleHistoryReader withBasePath(Path path)
withBasePath
in interface HistoryReader
public ChronicleHistoryReader withProgress(boolean p)
withProgress
in interface HistoryReader
public ChronicleHistoryReader withTimeUnit(TimeUnit p)
withTimeUnit
in interface HistoryReader
public ChronicleHistoryReader withHistosByMethod(boolean b)
withHistosByMethod
in interface HistoryReader
public ChronicleHistoryReader withIgnore(long ignore)
withIgnore
in interface HistoryReader
public ChronicleHistoryReader withMeasurementWindow(long measurementWindow)
withMeasurementWindow
in interface HistoryReader
public ChronicleHistoryReader withSummaryOutput(int offset)
withSummaryOutput
in interface HistoryReader
public ChronicleHistoryReader withStartIndex(long startIndex)
HistoryReader
withStartIndex
in interface HistoryReader
startIndex
- start indexpublic ChronicleHistoryReader withHistoSupplier(Supplier<net.openhft.chronicle.core.util.Histogram> histoSupplier)
withHistoSupplier
in interface HistoryReader
@NotNull protected @NotNull ChronicleQueue createQueue()
public void execute()
execute
in interface HistoryReader
public Map<String,net.openhft.chronicle.core.util.Histogram> readChronicle()
HistoryReader
readChronicle
in interface HistoryReader
public void outputData()
outputData
in interface HistoryReader
protected net.openhft.chronicle.wire.WireParselet parselet()
protected void processMessage(CharSequence methodName, net.openhft.chronicle.wire.MessageHistory history)
protected void windowPassed()
@NotNull protected @NotNull net.openhft.chronicle.core.util.Histogram histogram()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2022. All rights reserved.