public class OfmMutableMeterMod extends OfmMeterMod implements MutableMessage
OfmMeterMod
.length
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, 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 OfmMeterMod
public 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 © 2015. All Rights Reserved.