public class MBodyMutableGroupDescStats extends MBodyGroupDescStats implements MutableStructure
MBodyGroupDescStats
.MBodyGroupDescStats.Array, MBodyGroupDescStats.MutableArray
parseErrorCause, version
Constructor and Description |
---|
MBodyMutableGroupDescStats(ProtocolVersion pv) |
Modifier and Type | Method and Description |
---|---|
MBodyMutableGroupDescStats |
buckets(List<Bucket> bkts)
Sets the buckets for this group; Since 1.1.
|
MBodyMutableGroupDescStats |
groupId(GroupId groupId)
Sets the group ID; Since 1.1.
|
MBodyMutableGroupDescStats |
groupType(GroupType groupType)
Sets the group Type; 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.
|
getBuckets, getGroupId, getTotalLength, getType, toDebugString, toDebugString, validate
getVersion, hex, hex, incomplete, parseErrorCause
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public MBodyMutableGroupDescStats(ProtocolVersion pv)
public 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 MBodyGroupDescStats
public MBodyMutableGroupDescStats groupId(GroupId groupId)
groupId
- the group IDInvalidMutableException
- if this instance is no longer writableNullPointerException
- if groupId is nullpublic MBodyMutableGroupDescStats groupType(GroupType groupType)
groupType
- the group typeInvalidMutableException
- if this instance is no longer writableNullPointerException
- if groupType is nullpublic MBodyMutableGroupDescStats buckets(List<Bucket> bkts)
bkts
- the number of bucketsInvalidMutableException
- if this instance is no longer writableCopyright © 2016. All Rights Reserved.