Package org.ka2ddo.ax25
Class Connector.PortStats
java.lang.Object
org.ka2ddo.ax25.Connector.PortStats
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- Connector
A data structure recording throughput statistics for its containing PortConnector instance.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Running counter of defective received frames.int
Running counter of transmission failures.int
Number of times data loss (due to overruns) was detected.long
Running counter of received bytes on this PortConnector.int
Running counter of received frames on this PortConnector.long
Running counter of transmitted bytes on this PortConnector.int
Running counter of transmitted frames on this PortConnector. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
numRcvFrames
public int numRcvFramesRunning counter of received frames on this PortConnector. -
numRcvBytes
public long numRcvBytesRunning counter of received bytes on this PortConnector. -
numXmtFrames
public int numXmtFramesRunning counter of transmitted frames on this PortConnector. -
numXmtBytes
public long numXmtBytesRunning counter of transmitted bytes on this PortConnector. -
numBadRcvFrames
public int numBadRcvFramesRunning counter of defective received frames. -
numBadXmtFrames
public int numBadXmtFramesRunning counter of transmission failures. -
numDataOverrunLosses
public int numDataOverrunLossesNumber of times data loss (due to overruns) was detected.
-
-
Constructor Details
-
PortStats
public PortStats()
-
-
Method Details
-
clear
public void clear()Reset all the statistics counters to zero. -
clearGoodCounts
public void clearGoodCounts()Reset only the counters of successful operations. -
dup
Make a deep copy of this PortStats object.- Returns:
- duplicate PortStats object with counter values as of the time dup() was called
-