CounterSnapshotListenerpublic final class SystemSnapshot extends java.lang.Object implements CounterSnapshotListener
| Constructor | Description |
|---|---|
SystemSnapshot() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<StreamKey,java.util.Map<ChannelSessionKey,java.util.Set<ChannelSessionKey>>> |
getConnectionsByStream() |
Returns a tree-like structure identifying participants in individual message flows.
|
PublisherCounterSet |
getPublisherCounterSet(ChannelSessionKey channelSessionKey) |
Returns the publisher counters associated with a particular publisher.
|
SubscriberCounterSet |
getSubscriberCounterSet(ChannelSessionKey channelSessionKey) |
Returns the subscriber counters associated with a particular subscriber.
|
java.util.Map<java.lang.String,SystemCounters> |
getSystemCounters() |
Returns system counters keyed by MediaDriver label.
|
void |
onSnapshot(java.lang.String label,
long timestamp,
java.util.List<PublisherCounterSet> publisherCounters,
java.util.List<SubscriberCounterSet> subscriberCounters,
SystemCounters systemCounters) |
Called when a complete snapshot of the counters has been built.
|
public void onSnapshot(java.lang.String label,
long timestamp,
java.util.List<PublisherCounterSet> publisherCounters,
java.util.List<SubscriberCounterSet> subscriberCounters,
SystemCounters systemCounters)
onSnapshot in interface CounterSnapshotListenerlabel - label of the MediaDrivertimestamp - timestamp of the snapshotpublisherCounters - counters describing publisher statesubscriberCounters - counters describing subscriber statesystemCounters - counters describing system statepublic java.util.Map<java.lang.String,SystemCounters> getSystemCounters()
public java.util.Map<StreamKey,java.util.Map<ChannelSessionKey,java.util.Set<ChannelSessionKey>>> getConnectionsByStream()
public PublisherCounterSet getPublisherCounterSet(ChannelSessionKey channelSessionKey)
channelSessionKey - the identifier of the publisherpublic SubscriberCounterSet getSubscriberCounterSet(ChannelSessionKey channelSessionKey)
channelSessionKey - the identifier of the subscriber