public abstract class PortSnapshot extends Object implements PortStatistics, Serializable
Modifier and Type | Method and Description |
---|---|
static List<PortSnapshot> |
asSnapshots(Collection<? extends PortStatistics> ports)
Converts a list of statistics into snapshots.
|
long |
getBatchCount()
Gets the accumulated count of token batches processed by the port.
|
long |
getDataDuration()
Gets the amount of time data has been flowing through the port,
in milliseconds.
|
long |
getEODInstant()
Gets the time at which EOD was written/read on the port.
|
long |
getFirstBatchInstant()
Gets the time at which the first batch was written/read on the port.
|
String |
getName()
Gets the user-provided label associated with port.
|
PortStatus |
getState()
Gets the current state of the port.
|
long |
getTokenCount()
Gets the accumulated count of tokens processed by the port.
|
TokenType |
getType()
Gets the type of tokens handled by the port.
|
long |
getWaitCount()
Get the number of times the port entered a wait state.
|
long |
getWaitDuration()
Gets the total amount of time the port has spent in a wait
state blocked by another process.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSnapshot
public String getName()
getName
in interface PortStatistics
public TokenType getType()
getType
in interface PortStatistics
public PortStatus getState()
getState
in interface PortStatistics
public long getBatchCount()
getBatchCount
in interface PortStatistics
public long getTokenCount()
getTokenCount
in interface PortStatistics
public long getWaitCount()
getWaitCount
in interface PortStatistics
public long getWaitDuration()
getWaitDuration
in interface PortStatistics
public long getFirstBatchInstant()
PortStatistics
getFirstBatchInstant
in interface PortStatistics
LONG.MIN_VALUE
.public long getEODInstant()
PortStatistics
getEODInstant
in interface PortStatistics
LONG.MIN_VALUE
.public long getDataDuration()
PortStatistics
getDataDuration
in interface PortStatistics
0
.public static List<PortSnapshot> asSnapshots(Collection<? extends PortStatistics> ports)
ports
- live port statistics to captureCopyright © 2020 Actian Corporation. All rights reserved.