java.lang.Object
com.pervasive.datarush.ports.physical.PortSnapshot
com.pervasive.datarush.ports.physical.OutputSnapshot
- All Implemented Interfaces:
OutputStatistics,PortStatistics,Serializable
A snapshot of run-time statistics for an output port.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOutputSnapshot(OutputStatistics stats) Creates a snapshot of output statistics. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the highest number of batches ever held in the dataflow queue.longGets the highest number of tokens ever held in the dataflow queue.Gets a snapshot of the current statistics.Methods inherited from class com.pervasive.datarush.ports.physical.PortSnapshot
asSnapshots, getBatchCount, getDataDuration, getEODInstant, getFirstBatchInstant, getName, getState, getTokenCount, getType, getWaitCount, getWaitDurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pervasive.datarush.ports.physical.PortStatistics
getBatchCount, getDataDuration, getEODInstant, getFirstBatchInstant, getName, getState, getTokenCount, getType, getWaitCount, getWaitDuration
-
Constructor Details
-
OutputSnapshot
Creates a snapshot of output statistics.- Parameters:
stats- the live statistics to capture
-
-
Method Details
-
getMaxBatchCount
public long getMaxBatchCount()Gets the highest number of batches ever held in the dataflow queue. This is only applicable to output ports.- Specified by:
getMaxBatchCountin interfaceOutputStatistics- Returns:
- the largest observed size of the queue, in batches
-
getMaxTokenCount
public long getMaxTokenCount()Gets the highest number of tokens ever held in the dataflow queue. This is only applicable to output ports.- Specified by:
getMaxTokenCountin interfaceOutputStatistics- Returns:
- the largest observed size of the queue, in tokens
-
getSnapshot
Description copied from interface:PortStatisticsGets a snapshot of the current statistics.- Specified by:
getSnapshotin interfaceOutputStatistics- Specified by:
getSnapshotin interfacePortStatistics- Returns:
- an immutable copy of the statistics
-