java.lang.Object
com.pervasive.datarush.ports.physical.PortSnapshot
com.pervasive.datarush.ports.physical.InputSnapshot
- All Implemented Interfaces:
InputStatistics,PortStatistics,Serializable
A snapshot of run-time statistics for an input port.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputSnapshot(InputStatistics stats) Creates a snapshot of input statistics. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the number of times the port entered a wait state because the writer was blocked by a different reader.longGets the total amount of time the port has spent in a wait state because the writer was blocked by a different reader.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
-
InputSnapshot
Creates a snapshot of input statistics.- Parameters:
stats- the live statistics to capture
-
-
Method Details
-
getIndirectWaitCount
public long getIndirectWaitCount()Gets the number of times the port entered a wait state because the writer was blocked by a different reader. This is only applicable to input ports.- Specified by:
getIndirectWaitCountin interfaceInputStatistics- Returns:
- the accumulated number of waits due to another reader
-
getIndirectWaitDuration
public long getIndirectWaitDuration()Gets the total amount of time the port has spent in a wait state because the writer was blocked by a different reader. This is only applicable to input ports.- Specified by:
getIndirectWaitDurationin interfaceInputStatistics- Returns:
- milliseconds spent in an indirect wait state
-
getSnapshot
Description copied from interface:PortStatisticsGets a snapshot of the current statistics.- Specified by:
getSnapshotin interfaceInputStatistics- Specified by:
getSnapshotin interfacePortStatistics- Returns:
- an immutable copy of the statistics
-