Class CounterSnapshotPublisher
- java.lang.Object
-
- com.aitusoftware.aether.transport.CounterSnapshotPublisher
-
- All Implemented Interfaces:
CounterSnapshotListener,java.lang.AutoCloseable
public final class CounterSnapshotPublisher extends java.lang.Object implements CounterSnapshotListener, java.lang.AutoCloseable
An implementation ofCounterSnapshotListenerthat publishes to an AeronPublication.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCounterSnapshotPublisher.ContextConfiguration context.
-
Constructor Summary
Constructors Constructor Description CounterSnapshotPublisher()Construct a new publisher using runtime configuration.CounterSnapshotPublisher(CounterSnapshotPublisher.Context context)Construct a new publisher from the supplied context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidonSnapshot(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.
-
-
-
Constructor Detail
-
CounterSnapshotPublisher
public CounterSnapshotPublisher()
Construct a new publisher using runtime configuration.
-
CounterSnapshotPublisher
public CounterSnapshotPublisher(CounterSnapshotPublisher.Context context)
Construct a new publisher from the supplied context.- Parameters:
context- configuration context
-
-
Method Detail
-
onSnapshot
public 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.- Specified by:
onSnapshotin interfaceCounterSnapshotListener- Parameters:
label- label of the MediaDrivertimestamp- timestamp of the snapshotpublisherCounters- counters describing publisher statesubscriberCounters- counters describing subscriber statesystemCounters- counters describing system state
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-