public class MBodyMutablePortStatsRequest extends MBodyPortStatsRequest implements MutableStructure
MBodyPortStatsRequest.version| Constructor and Description |
|---|
MBodyMutablePortStatsRequest(ProtocolVersion pv)
Constructs a mutable multipart body PORT_STATS request type.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutablePortStatsRequest |
port(BigPortNumber port)
Sets the port in the port stats request; 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, getTotalLength, toDebugString, validategetVersion, hex, hexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic MBodyMutablePortStatsRequest(ProtocolVersion pv)
Note that a freshly constructed instance has the following default value:
Port.ANYpv - 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 MBodyPortStatsRequestpublic MBodyMutablePortStatsRequest port(BigPortNumber port)
Port.ANY indicates stats requested for all ports.
Note that in 1.0, port numbers are u16.
port - the requested portInvalidMutableException - if this instance is no longer writableNullPointerException - if port is nullIllegalArgumentException - if the port number is invalidCopyright © 2014. All Rights Reserved.