public class MBodyGroupDescStats extends OpenflowStructure implements MultipartBody
| Modifier and Type | Class and Description |
|---|---|
static class |
MBodyGroupDescStats.Array
Represents an array of group description elements.
|
static class |
MBodyGroupDescStats.MutableArray
A mutable array of group description elements.
|
version| Constructor and Description |
|---|
MBodyGroupDescStats(ProtocolVersion pv)
Constructs a multipart body GROUP_DESC type.
|
| Modifier and Type | Method and Description |
|---|---|
List<Bucket> |
getBuckets()
Returns the list of buckets for this group; Since 1.1.
|
GroupId |
getGroupId()
Returns the group ID; Since 1.1.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
GroupType |
getType()
Returns the group type; Since 1.1.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a multi-line representation of this group desc stats object.
|
String |
toString() |
void |
validate()
Validates this structure for completeness and throws an exception
if the structure is considered "not complete".
|
getVersion, hex, hexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersionpublic MBodyGroupDescStats(ProtocolVersion pv)
pv - the protocol versionpublic int getTotalLength()
MultipartBodygetTotalLength in interface MultipartBodypublic String toString()
toString in class OpenflowStructurepublic String toDebugString()
OpenflowStructureOpenflowStructure.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowStructurepublic void validate()
throws IncompleteStructureException
OpenflowStructureThis 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 MultipartBodyvalidate in class OpenflowStructureIncompleteStructureException - if the structure is not completepublic String toDebugString(int indent)
indent - the additional indent (number of spaces)public GroupType getType()
public GroupId getGroupId()
Copyright © 2014. All Rights Reserved.