public class MBodyMutableGroupStats extends MBodyGroupStats implements MutableStructure
MBodyGroupStats.MBodyGroupStats.Array, MBodyGroupStats.BucketCounter, MBodyGroupStats.MutableArrayversion| Constructor and Description |
|---|
MBodyMutableGroupStats(ProtocolVersion pv)
Constructs a mutable multipart body GROUP stats element.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutableGroupStats |
addBucketStats(long packets,
long bytes)
Sets the list of bucket stats for this group; Since 1.1.
|
MBodyMutableGroupStats |
byteCount(long byteCount)
Sets the number of bytes processed by this group; Since 1.1.
|
MBodyMutableGroupStats |
duration(long seconds,
long nano)
Sets the time the group has been alive; Since 1.3.
|
MBodyMutableGroupStats |
groupId(GroupId groupId)
Sets the group ID; Since 1.1.
|
MBodyMutableGroupStats |
packetCount(long packetCount)
Sets the number of packets processed by this group; Since 1.1.
|
MBodyMutableGroupStats |
refCount(long refCount)
Sets the number of flows or groups that directly forward to
this group; 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.
|
getBucketStats, getByteCount, getDurationNsec, getDurationSec, getGroupId, getPacketCount, getRefCount, getTotalLength, toDebugString, toDebugString, validategetVersion, hex, hexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic MBodyMutableGroupStats(ProtocolVersion pv)
A valid GroupId must be present for this element to be valid.
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 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 MBodyGroupStatspublic MBodyMutableGroupStats groupId(GroupId groupId)
groupId - the group IDInvalidMutableException - if this instance is no longer writableNullPointerException - if groupId is nullpublic MBodyMutableGroupStats duration(long seconds, long nano)
The first parameter is the number of seconds; the second number is the additional number of nanoseconds.
seconds - the number of secondsnano - the additional number of nanosecondsVersionMismatchException - if version < 1.3InvalidMutableException - if this instance is no longer writableIllegalArgumentException - if seconds or nanoSeconds is not u32public MBodyMutableGroupStats refCount(long refCount)
refCount - the number of flows or groupsInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if priority is not u32public MBodyMutableGroupStats packetCount(long packetCount)
packetCount - the number of packetsInvalidMutableException - if this instance is no longer writablepublic MBodyMutableGroupStats byteCount(long byteCount)
byteCount - the number of bytesInvalidMutableException - if this instance is no longer writablepublic MBodyMutableGroupStats addBucketStats(long packets, long bytes)
packets - the number of packetsbytes - the number of bytesInvalidMutableException - if this instance is no longer writableCopyright © 2014. All Rights Reserved.