public class MBodyMutablePortStatsRequest extends MBodyPortStatsRequest implements MutableStructure
MBodyPortStatsRequest
.parseErrorCause, 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, validate
getVersion, hex, hex, incomplete, parseErrorCause
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public MBodyMutablePortStatsRequest(ProtocolVersion pv)
Note that a freshly constructed instance has the following default value:
Port.ANY
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 MutableStructure
public boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public String toString()
toString
in class MBodyPortStatsRequest
public 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 © 2015. All Rights Reserved.