public class MBodyMutableGroupFeatures extends MBodyGroupFeatures implements MutableStructure
MBodyGroupFeatures.version| Constructor and Description |
|---|
MBodyMutableGroupFeatures(ProtocolVersion pv)
Constructs a mutable multipart body GroupFeatures type.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutableGroupFeatures |
actionsForType(GroupType type,
Set<ActionType> actions)
Sets the actions supported for the given group type; since 1.2.
|
MBodyMutableGroupFeatures |
capabilities(Set<GroupCapability> caps)
Sets the supported group capabilities; since 1.2
|
MBodyMutableGroupFeatures |
groupTypes(Set<GroupType> types)
Sets the supported group types; since 1.2.
|
MBodyMutableGroupFeatures |
maxGroupsForType(GroupType type,
long max)
Sets the maximum number of groups supported for the given group type;
since 1.2.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getActionsForType, getCapabilities, getMaxGroupsForType, getTotalLength, getTypes, toDebugString, toDebugStringgetVersion, hex, hex, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringvalidatepublic MBodyMutableGroupFeatures(ProtocolVersion pv)
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 MBodyGroupFeaturespublic MBodyMutableGroupFeatures groupTypes(Set<GroupType> types)
types - the set of supported group typesInvalidMutableException - if this instance is no longer writableNullPointerException - if types is nullpublic MBodyMutableGroupFeatures capabilities(Set<GroupCapability> caps)
caps - the set of supported group capabilitiesInvalidMutableException - if this instance is no longer writableNullPointerException - if caps is nullpublic MBodyMutableGroupFeatures maxGroupsForType(GroupType type, long max)
type - the group typemax - the maximum number of groups supportedInvalidMutableException - if this instance is no longer writableNullPointerException - if type is nullIllegalArgumentException - if max is not u32public MBodyMutableGroupFeatures actionsForType(GroupType type, Set<ActionType> actions)
type - the group typeactions - the actions supportedInvalidMutableException - if this instance is no longer writableNullPointerException - if either parameter is nullCopyright © 2014. All Rights Reserved.