public class MBodyMutableGroupStatsRequest extends MBodyGroupStatsRequest implements MutableStructure
MBodyGroupStatsRequest
.parseErrorCause, version
Constructor and Description |
---|
MBodyMutableGroupStatsRequest(ProtocolVersion pv)
Constructs a mutable multipart body GROUP request type.
|
Modifier and Type | Method and Description |
---|---|
MBodyMutableGroupStatsRequest |
groupId(GroupId groupId)
Sets the group ID; Since 1.1.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getGroupId, getTotalLength, toDebugString, validate
getVersion, hex, hex, incomplete, parseErrorCause
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public MBodyMutableGroupStatsRequest(ProtocolVersion pv)
Note that a freshly constructed instance has the following default value:
GroupId.ALL
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 MBodyGroupStatsRequest
public MBodyMutableGroupStatsRequest groupId(GroupId groupId)
groupId
- the group IDInvalidMutableException
- if this instance is no longer writableNullPointerException
- if groupId is nullCopyright © 2015. All Rights Reserved.