CounterSnapshotListenerpublic final class RateMonitor extends java.lang.Object implements CounterSnapshotListener
| Constructor | Description |
|---|---|
RateMonitor(java.util.List<RateBucket> rateBuckets) |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
java.util.Map<ChannelSessionKey,StreamRate> |
publisherRates() |
public RateMonitor(java.util.List<RateBucket> rateBuckets)
public void onSnapshot(java.lang.String label,
long timestamp,
java.util.List<PublisherCounterSet> publisherCounters,
java.util.List<SubscriberCounterSet> subscriberCounters,
SystemCounters systemCounters)
CounterSnapshotListeneronSnapshot 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<ChannelSessionKey,StreamRate> publisherRates()