public class MBodyMutableQueueStats extends MBodyQueueStats implements MutableStructure
MBodyQueueStats
.MBodyQueueStats.Array, MBodyQueueStats.MutableArray
parseErrorCause, version
Constructor and Description |
---|
MBodyMutableQueueStats(ProtocolVersion pv)
Constructs a mutable multipart body QUEUE stats element.
|
Modifier and Type | Method and Description |
---|---|
MBodyMutableQueueStats |
duration(long seconds,
long nano)
Sets the time the queue has been installed; Since 1.0.
|
MBodyMutableQueueStats |
port(BigPortNumber port)
Sets the port number; Since 1.0.
|
MBodyMutableQueueStats |
queueId(QueueId queueId)
Sets the queue ID configured for specified port; Since 1.0.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
MBodyMutableQueueStats |
txBytes(long txBytes)
Sets the number of transmitted bytes; Since 1.0.
|
MBodyMutableQueueStats |
txErrors(long txErrors)
Sets the number of error packets; Since 1.0.
|
MBodyMutableQueueStats |
txPackets(long txPackets)
Sets the number of transmitted packets; Since 1.0.
|
boolean |
writable()
Returns true if this mutable object is still writable.
|
getDurationNsec, getDurationSec, getPort, getQueueId, getTotalLength, getTxBytes, getTxErrors, getTxPackets, toDebugString, toDebugString
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
validate
public MBodyMutableQueueStats(ProtocolVersion pv)
pv
- the protocol versionpublic boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public 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 MutableStructure
public String toString()
toString
in class MBodyQueueStats
public MBodyMutableQueueStats port(BigPortNumber port)
Note that in 1.0, port numbers are u16.
port
- the port numberNullPointerException
- if port is nullIllegalArgumentException
- if the port number is invalidInvalidMutableException
- if this instance is no longer writablepublic MBodyMutableQueueStats queueId(QueueId queueId)
queueId
- the queue IDInvalidMutableException
- if this instance is no longer writableNullPointerException
- if queueId is nullpublic MBodyMutableQueueStats txBytes(long txBytes)
txBytes
- the number of transmitted bytesInvalidMutableException
- if this instance is no longer writablepublic MBodyMutableQueueStats txPackets(long txPackets)
txPackets
- the number of transmitted packetsInvalidMutableException
- if this instance is no longer writablepublic MBodyMutableQueueStats txErrors(long txErrors)
txErrors
- the number of packets dropped due to overrunInvalidMutableException
- if this instance is no longer writablepublic MBodyMutableQueueStats 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 nanosecondsInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if either value is not u32Copyright © 2015. All Rights Reserved.