public class MBodyGroupFeatures extends OpenflowStructure implements MultipartBody
parseErrorCause, version
Constructor and Description |
---|
MBodyGroupFeatures(ProtocolVersion pv)
Constructs a multipart body GroupFeatures type.
|
Modifier and Type | Method and Description |
---|---|
Set<ActionType> |
getActionsForType(GroupType type)
Returns the set of supported actions for the given group type; since 1.2.
|
Set<GroupCapability> |
getCapabilities()
Returns the set of supported group capabilities; since 1.2.
|
long |
getMaxGroupsForType(GroupType type)
Returns the maximum number of groups for the given group type; since 1.2.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
Set<GroupType> |
getTypes()
Returns the set of supported group types; since 1.2.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a multi-line representation of this Group Features object.
|
String |
toString() |
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validate
getVersion
public MBodyGroupFeatures(ProtocolVersion pv)
pv
- the protocol versionpublic int getTotalLength()
MultipartBody
getTotalLength
in interface MultipartBody
public String toString()
toString
in class OpenflowStructure
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 Set<GroupType> getTypes()
public Set<GroupCapability> getCapabilities()
public long getMaxGroupsForType(GroupType type)
type
- the group typepublic Set<ActionType> getActionsForType(GroupType type)
type
- the group typeCopyright © 2015. All Rights Reserved.