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 |
static String |
SEPARATOR |
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() |
protected @NotNull String |
methodIdToName(long methodId) |
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, waitcreate, createpublic static final String SEPARATOR
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 HistoryReaderpublic ChronicleHistoryReader withBasePath(Path path)
withBasePath in interface HistoryReaderpublic ChronicleHistoryReader withProgress(boolean p)
withProgress in interface HistoryReaderpublic ChronicleHistoryReader withTimeUnit(TimeUnit p)
withTimeUnit in interface HistoryReaderpublic ChronicleHistoryReader withHistosByMethod(boolean b)
withHistosByMethod in interface HistoryReaderpublic ChronicleHistoryReader withIgnore(long ignore)
withIgnore in interface HistoryReaderpublic ChronicleHistoryReader withMeasurementWindow(long measurementWindow)
withMeasurementWindow in interface HistoryReaderpublic ChronicleHistoryReader withSummaryOutput(int offset)
withSummaryOutput in interface HistoryReaderpublic ChronicleHistoryReader withStartIndex(long startIndex)
HistoryReaderwithStartIndex in interface HistoryReaderstartIndex - 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 HistoryReaderpublic Map<String,net.openhft.chronicle.core.util.Histogram> readChronicle()
HistoryReaderreadChronicle in interface HistoryReader@NotNull protected @NotNull String methodIdToName(long methodId)
public void outputData()
outputData in interface HistoryReaderprotected 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 Closeableclose in interface AutoCloseableCopyright © 2023. All rights reserved.