public class OfmMutableGroupMod extends OfmGroupMod implements MutableMessage
OfmGroupMod
.length
Modifier and Type | Method and Description |
---|---|
OfmMutableGroupMod |
addBucket(Bucket bucket)
Adds a bucket to this group-mod message; Since 1.1.
|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableGroupMod |
command(GroupModCommand cmd)
Sets the group mod command; Since 1.1.
|
OfmMutableGroupMod |
groupId(GroupId id)
Sets the group id; Since 1.1.
|
OfmMutableGroupMod |
groupType(GroupType type)
Sets the group type; Since 1.1.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getBuckets, getCommand, getGroupId, getGroupType, toDebugString
decodeHeader, getType, getVersion, getXid, hex, hex, length, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public void clearXid()
MutableMessage
clearXid
in interface MutableMessage
public OpenflowMessage toImmutable()
MutableMessage
It is expected that the reference to this mutable message will be
dropped. Note that all method calls invoked on a
MutableMessage
after toImmutable()
has been invoked
will result in an InvalidMutableException
being thrown.
toImmutable
in interface MutableMessage
public boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public String toString()
toString
in class OfmGroupMod
public OfmMutableGroupMod command(GroupModCommand cmd)
cmd
- the group-mod commandInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.1NullPointerException
- if cmd is nullpublic OfmMutableGroupMod groupType(GroupType type)
type
- the group typeInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.1NullPointerException
- if type is nullpublic OfmMutableGroupMod groupId(GroupId id)
id
- the group idInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.1NullPointerException
- if id is nullpublic OfmMutableGroupMod addBucket(Bucket bucket)
bucket
- the bucket to addInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.1 or if the
bucket version is not the same as this instanceNullPointerException
- if bucket is nullIllegalArgumentException
- if bucket is mutableCopyright © 2016. All Rights Reserved.