public class ChronicleHistoryReader extends Object implements HistoryReader
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 long |
ignore |
protected int |
lastHistosSize |
protected long |
lastWindowCount |
protected long |
measurementWindowNanos |
protected Consumer<String> |
messageSink |
protected boolean |
progress |
protected int |
summaryOutputOffset |
protected TimeUnit |
timeUnit |
Constructor and Description |
---|
ChronicleHistoryReader() |
Modifier and Type | Method and Description |
---|---|
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() |
protected void |
windowPassed() |
ChronicleHistoryReader |
withBasePath(Path path) |
ChronicleHistoryReader |
withHistosByMethod(boolean b) |
ChronicleHistoryReader |
withIgnore(long ignore) |
ChronicleHistoryReader |
withMeasurementWindow(long measurementWindow) |
ChronicleHistoryReader |
withMessageSink(Consumer<String> messageSink) |
ChronicleHistoryReader |
withProgress(boolean p) |
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 int lastHistosSize
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
@NotNull protected @NotNull ChronicleQueue createQueue()
public void execute()
execute
in interface HistoryReader
public Map<String,net.openhft.chronicle.core.util.Histogram> readChronicle()
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()
Copyright © 2021. All rights reserved.