public class MBodyGroupStats extends OpenflowStructure implements MultipartBody
MBodyGroupStatsRequest
Modifier and Type | Class and Description |
---|---|
static class |
MBodyGroupStats.Array
Represents an array of group stats elements.
|
static class |
MBodyGroupStats.BucketCounter
Represents a bucket counter element; part of group-stats reply
multipart message; Since 1.1.
|
static class |
MBodyGroupStats.MutableArray
A mutable array of group stats elements.
|
parseErrorCause, version
Constructor and Description |
---|
MBodyGroupStats(ProtocolVersion pv)
Constructs a multipart body GROUP type.
|
Modifier and Type | Method and Description |
---|---|
List<MBodyGroupStats.BucketCounter> |
getBucketStats()
Returns the list of bucket stats for this group; Since 1.1.
|
long |
getByteCount()
Returns the number of bytes processed by this group; Since 1.1.
|
long |
getDurationNsec()
Returns the time this group has been alive in nanoseconds beyond
getDurationSec() ; Since 1.3. |
long |
getDurationSec()
Returns the time this group has been alive in seconds; Since 1.3.
|
GroupId |
getGroupId()
Returns the group ID; Since 1.1.
|
long |
getPacketCount()
Returns the number of packets processed by this group; Since 1.1.
|
long |
getRefCount()
Returns the number of flows or groups that directly forward to
this group; Since 1.1.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a multi-line representation of this Group Stats object.
|
String |
toString() |
void |
validate()
Validates this structure for completeness and throws an exception
if the structure is considered "not complete".
|
getVersion, hex, hex, incomplete, parseErrorCause
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion
public MBodyGroupStats(ProtocolVersion pv)
pv
- the protocol versionpublic String toString()
toString
in class OpenflowStructure
public void validate() throws IncompleteStructureException
OpenflowStructure
This default implementation does nothing, i.e. default behavior is that structures are considered complete.
Subclasses should override this method to check that mandatory fields or other internal state is present, throwing an exception if it is not.
validate
in interface MultipartBody
validate
in class OpenflowStructure
IncompleteStructureException
- if the structure is not completepublic int getTotalLength()
MultipartBody
getTotalLength
in interface MultipartBody
public String toDebugString()
OpenflowStructure
OpenflowStructure.toString()
, but
subclasses are free to override this behavior.toDebugString
in interface Structure
toDebugString
in class OpenflowStructure
public String toDebugString(int indent)
indent
- the additional indent (number of spaces)public GroupId getGroupId()
public long getRefCount()
public long getPacketCount()
public long getByteCount()
public long getDurationSec()
public long getDurationNsec()
getDurationSec()
; Since 1.3.
This value is u32.public List<MBodyGroupStats.BucketCounter> getBucketStats()
Copyright © 2016. All Rights Reserved.