- java.lang.Object
-
- com.pervasive.datarush.ports.physical.PortSnapshot
-
- com.pervasive.datarush.ports.physical.OutputSnapshot
-
- All Implemented Interfaces:
OutputStatistics
,PortStatistics
,Serializable
public class OutputSnapshot extends PortSnapshot implements OutputStatistics
A snapshot of run-time statistics for an output port.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OutputSnapshot(OutputStatistics stats)
Creates a snapshot of output statistics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMaxBatchCount()
Gets the highest number of batches ever held in the dataflow queue.long
getMaxTokenCount()
Gets the highest number of tokens ever held in the dataflow queue.OutputSnapshot
getSnapshot()
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, getWaitDuration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.pervasive.datarush.ports.physical.PortStatistics
getBatchCount, getDataDuration, getEODInstant, getFirstBatchInstant, getName, getState, getTokenCount, getType, getWaitCount, getWaitDuration
-
-
-
-
Constructor Detail
-
OutputSnapshot
public OutputSnapshot(OutputStatistics stats)
Creates a snapshot of output statistics.- Parameters:
stats
- the live statistics to capture
-
-
Method Detail
-
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:
getMaxBatchCount
in 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:
getMaxTokenCount
in interfaceOutputStatistics
- Returns:
- the largest observed size of the queue, in tokens
-
getSnapshot
public OutputSnapshot getSnapshot()
Description copied from interface:PortStatistics
Gets a snapshot of the current statistics.- Specified by:
getSnapshot
in interfaceOutputStatistics
- Specified by:
getSnapshot
in interfacePortStatistics
- Returns:
- an immutable copy of the statistics
-
-