public final class StreamStat extends Object
Each stream managed by the MediaDriver
will be sampled and a line of text
output per stream with each of the position counters for that stream.
Each counter has the format:
<label-name>:<registration-id>:<position value>
Modifier and Type | Class and Description |
---|---|
static class |
StreamStat.StreamCompositeKey
Composite key which identifies an Aeron stream of messages.
|
static class |
StreamStat.StreamPosition
Represents a position within a particular stream of messages.
|
Constructor and Description |
---|
StreamStat(CountersReader counters)
Construct by using a
CountersReader which can be obtained from Aeron.countersReader() . |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Main method for launching the process.
|
int |
print(PrintStream out)
Print a snapshot of the stream positions to a
PrintStream . |
Map<StreamStat.StreamCompositeKey,List<StreamStat.StreamPosition>> |
snapshot()
Take a snapshot of all the counters and group them by streams.
|
public StreamStat(CountersReader counters)
CountersReader
which can be obtained from Aeron.countersReader()
.counters
- to read for tracking positions.public static void main(String[] args)
args
- passed to the process.public Map<StreamStat.StreamCompositeKey,List<StreamStat.StreamPosition>> snapshot()
public int print(PrintStream out)
PrintStream
.
Each stream will be printed on its own line.
out
- to which the stream snapshot will be written.Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.