public class MBodyMutableQueueStatsRequest extends MBodyQueueStatsRequest implements MutableStructure
MBodyQueueStatsRequest
.parseErrorCause, version
Constructor and Description |
---|
MBodyMutableQueueStatsRequest(ProtocolVersion pv)
Constructs a mutable multipart body QUEUE request type.
|
Modifier and Type | Method and Description |
---|---|
MBodyMutableQueueStatsRequest |
port(BigPortNumber port)
Sets the port number for which statistics are requested; Since 1.0.
|
MBodyMutableQueueStatsRequest |
queueId(QueueId queueId)
Sets the ID of the queue to read; Since 1.0.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getPort, getQueueId, getTotalLength, toDebugString, validate
getVersion, hex, hex, incomplete, parseErrorCause
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public MBodyMutableQueueStatsRequest(ProtocolVersion pv)
Note that a freshly constructed instance has the following default values:
Port.ANY
QueueId.ALL
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 MBodyQueueStatsRequest
public MBodyMutableQueueStatsRequest port(BigPortNumber port)
Port.ANY
indicates no restriction.
Note that in 1.0, port numbers are u16.
port
- the portInvalidMutableException
- if this instance is no longer writableNullPointerException
- if port is nullIllegalArgumentException
- if the port number is invalidpublic MBodyMutableQueueStatsRequest queueId(QueueId queueId)
A value of QueueId.ALL
indicates all queues configured
at the specified port.
queueId
- the queue IDInvalidMutableException
- if this instance is no longer writableNullPointerException
- if queueId is nullCopyright © 2015. All Rights Reserved.