public class OfmMutableMeterMod extends OfmMeterMod implements MutableMessage
OfmMeterMod.OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
OfmMutableMeterMod |
addBand(MeterBand band)
Adds a meter band to this meter-mod message; Since 1.3.
|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableMeterMod |
command(MeterModCommand cmd)
Sets the meter mod command; Since 1.3.
|
OfmMutableMeterMod |
meterFlags(Set<MeterFlag> flags)
Sets the meter flags; Since 1.3.
|
OfmMutableMeterMod |
meterId(MeterId meterId)
Sets the meter id; Since 1.3.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getBands, getCommand, getFlags, getMeterId, toDebugStringdecodeHeader, getType, getVersion, getXid, hex, hex, length, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic void clearXid()
MutableMessageclearXid in interface MutableMessagepublic 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 MutableMessagepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
toString in class OfmMeterModpublic OfmMutableMeterMod command(MeterModCommand cmd)
cmd - the meter-mod commandInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version is < 1.3NullPointerException - if cmd is nullpublic OfmMutableMeterMod meterFlags(Set<MeterFlag> flags)
flags - the meter-mod flagsInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version is < 1.3NullPointerException - if flags is nullpublic OfmMutableMeterMod meterId(MeterId meterId)
meterId - the meter idInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version is < 1.3NullPointerException - if meterId is nullpublic OfmMutableMeterMod addBand(MeterBand band)
band - the meter band to addInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version is < 1.3NullPointerException - if band is nullCopyright © 2014. All Rights Reserved.