public class OfmMutableExperimenter extends OfmExperimenter implements MutableMessage
OfmExperimenter
.length
Modifier and Type | Method and Description |
---|---|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableExperimenter |
data(byte[] data)
Sets the data; Since 1.0.
|
OfmMutableExperimenter |
expId(ExperimenterId id)
Sets the experimenter identifier; Since 1.1.
|
OfmMutableExperimenter |
expId(int encodedId)
Sets the experimenter identifier; Since 1.1.
|
OfmMutableExperimenter |
expType(int expType)
Sets the experimenter type; Since 1.2
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getData, getExpId, getExpType, getId, 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 OfmExperimenter
public OfmMutableExperimenter expId(ExperimenterId id)
id
- the experimenter identifierNullPointerException
- if id is nullInvalidMutableException
- if this instance is no longer writablepublic OfmMutableExperimenter expId(int encodedId)
encodedId
- the encoded experimenter identifierNullPointerException
- if encodedId is nullInvalidMutableException
- if this instance is no longer writablepublic OfmMutableExperimenter expType(int expType)
expType
- the experimenter typeInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.2public OfmMutableExperimenter data(byte[] data)
data
- the dataNullPointerException
- if data is nullInvalidMutableException
- if this instance is no longer writableCopyright © 2015. All Rights Reserved.