public interface PortStatistics extends Annotated
| Modifier and Type | Method and Description |
|---|---|
default Annotations |
annotations()
Returns the key/value annotations.
|
long |
bytesReceived()
Returns the bytes received.
|
long |
bytesSent()
Returns the bytes sent.
|
long |
durationNano()
Returns the time port has been alive in nano seconds.
|
long |
durationSec()
Returns the time port has been alive in seconds.
|
boolean |
isZero()
Returns true if all the port stats are zero, excluding TxErrors and RxErrors.
|
long |
packetsReceived()
Returns the number of packets received.
|
long |
packetsRxDropped()
Returns the number of packets dropped by RX.
|
long |
packetsRxErrors()
Returns the number of transmit errors.
|
long |
packetsSent()
Returns the number of packets sent.
|
long |
packetsTxDropped()
Returns the number of packets dropped by TX.
|
long |
packetsTxErrors()
Returns the number of receive errors.
|
PortNumber |
portNumber()
Returns the port number.
|
PortNumber portNumber()
long packetsReceived()
long packetsSent()
long bytesReceived()
long bytesSent()
long packetsRxDropped()
long packetsTxDropped()
long packetsRxErrors()
long packetsTxErrors()
long durationSec()
long durationNano()
default Annotations annotations()
Annotatedannotations in interface Annotatedboolean isZero()