public class MBodyMutablePortStats extends MBodyPortStats implements MutableStructure
MBodyPortStats.MBodyPortStats.Array, MBodyPortStats.MutableArrayversion| Constructor and Description |
|---|
MBodyMutablePortStats(ProtocolVersion pv)
Constructs a mutable multipart body PORT_STATS element.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutablePortStats |
collisions(long collisions)
Sets the number of collisions; Since 1.0.
|
MBodyMutablePortStats |
duration(long seconds,
long nano)
Sets the time the group has been alive; Since 1.3.
|
MBodyMutablePortStats |
port(BigPortNumber port)
Sets the port number; Since 1.0.
|
MBodyMutablePortStats |
rxBytes(long rxBytes)
Sets the number of bytes received by this port; Since 1.0.
|
MBodyMutablePortStats |
rxCrcErr(long rxCrcErr)
Sets the number of CRC error packets received by this port; Since 1.0.
|
MBodyMutablePortStats |
rxDropped(long rxDropped)
Sets the number of packets dropped by this port at receiving end;
Since 1.0.
|
MBodyMutablePortStats |
rxErrors(long rxErrors)
Sets the number of error packets received by this port; Since 1.0.
|
MBodyMutablePortStats |
rxFrameErr(long rxFrameErr)
Sets the number of frame alignment error packets received by
this port; Since 1.0.
|
MBodyMutablePortStats |
rxOverErr(long rxOverErr)
Sets the number of overrun error packets received by this
port; Since 1.0.
|
MBodyMutablePortStats |
rxPackets(long rxPackets)
Sets the number of packets received by this port; Since 1.0.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
MBodyMutablePortStats |
txBytes(long txBytes)
Sets the number of bytes transmitted by this port; Since 1.0.
|
MBodyMutablePortStats |
txDropped(long txDropped)
Sets the number of packets dropped by this port at transmitting end;
Since 1.0.
|
MBodyMutablePortStats |
txErrors(long txErrors)
Sets the number of transmit error packets; Since 1.0.
|
MBodyMutablePortStats |
txPackets(long txPackets)
Sets the number of packets transmitted by this port; Since 1.0.
|
boolean |
writable()
Returns true if this mutable object is still writable.
|
getCollisions, getDurationNsec, getDurationSec, getPort, getRxBytes, getRxCRCErr, getRxDropped, getRxErrors, getRxFrameErr, getRxOverErr, getRxPackets, getTotalLength, getTxBytes, getTxDropped, getTxErrors, getTxPackets, toDebugString, toDebugString, validategetVersion, hex, hexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic MBodyMutablePortStats(ProtocolVersion pv)
A valid Port must be present for this element to be valid.
pv - the protocol versionpublic OpenflowStructure toImmutable()
MutableStructure
It is expected that the reference to this mutable structure will be
dropped. Note that all method calls invoked on a
MutableStructure after toImmutable() has been invoked
will result in an InvalidMutableException being thrown.
toImmutable in interface MutableStructurepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
toString in class MBodyPortStatspublic MBodyMutablePortStats port(BigPortNumber port)
Note that in 1.0, port numbers are u16.
port - the port numberInvalidMutableException - if this instance is no longer writableNullPointerException - if port is nullIllegalArgumentException - if the port number is invalidpublic MBodyMutablePortStats rxPackets(long rxPackets)
rxPackets - the number of received packetsInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats txPackets(long txPackets)
txPackets - the number of transmitted packetsInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats rxBytes(long rxBytes)
rxBytes - the number of received bytesInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats txBytes(long txBytes)
txBytes - the number of transmitted bytesInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats rxDropped(long rxDropped)
rxDropped - the number of dropped packetsInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats txDropped(long txDropped)
txDropped - the number of dropped packetsInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats rxErrors(long rxErrors)
rxErrors - the number of packets with errorInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats txErrors(long txErrors)
txErrors - the number of packets with errorInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats rxFrameErr(long rxFrameErr)
rxFrameErr - the number of packets with frame alignment errorInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats rxOverErr(long rxOverErr)
rxOverErr - the number of packets with overrun errorInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats rxCrcErr(long rxCrcErr)
rxCrcErr - the number of packets with CRC errorInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats collisions(long collisions)
collisions - the number of collisionsInvalidMutableException - if this instance is no longer writablepublic MBodyMutablePortStats duration(long seconds, long nano)
The first parameter is the number of seconds; the second number is the additional number of nanoseconds.
seconds - the number of secondsnano - the additional number of nanosecondsVersionMismatchException - if version < 1.3InvalidMutableException - if this instance is no longer writableIllegalArgumentException - if seconds or nanoSeconds is not u32Copyright © 2014. All Rights Reserved.