public final class DefaultPortStatistics extends AbstractAnnotated implements PortStatistics
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPortStatistics.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DefaultPortStatistics.Builder |
builder()
Creates a builder for DefaultPortStatistics object.
|
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.
|
int |
port()
Returns the port number.
|
PortNumber |
portNumber()
Returns the port number.
|
String |
toString() |
annotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitannotationspublic static DefaultPortStatistics.Builder builder()
public int port()
PortStatisticsport in interface PortStatisticspublic PortNumber portNumber()
PortStatisticsportNumber in interface PortStatisticspublic long packetsReceived()
PortStatisticspacketsReceived in interface PortStatisticspublic long packetsSent()
PortStatisticspacketsSent in interface PortStatisticspublic long bytesReceived()
PortStatisticsbytesReceived in interface PortStatisticspublic long bytesSent()
PortStatisticsbytesSent in interface PortStatisticspublic long packetsRxDropped()
PortStatisticspacketsRxDropped in interface PortStatisticspublic long packetsTxDropped()
PortStatisticspacketsTxDropped in interface PortStatisticspublic long packetsRxErrors()
PortStatisticspacketsRxErrors in interface PortStatisticspublic long packetsTxErrors()
PortStatisticspacketsTxErrors in interface PortStatisticspublic long durationSec()
PortStatisticsdurationSec in interface PortStatisticspublic long durationNano()
PortStatisticsdurationNano in interface PortStatisticspublic boolean isZero()
PortStatisticsisZero in interface PortStatistics