use of net.openhft.chronicle.wire.WireParselet in project Chronicle-Queue by OpenHFT.
the class ChronicleHistoryReader method readChronicle.
public Map<String, Histogram> readChronicle() {
final SingleChronicleQueue q = createQueue();
final ExcerptTailer tailer = q.createTailer();
final WireParselet parselet = parselet();
final MethodReader mr = new VanillaMethodReader(tailer, true, parselet, null, parselet);
MessageHistory.set(new VanillaMessageHistory());
while (!Thread.currentThread().isInterrupted() && mr.readOne()) {
++counter;
if (this.progress && counter % 1_000_000L == 0) {
System.out.println("Progress: " + counter);
}
}
return histos;
}
Aggregations