public class MBodyMutableExperimenter extends MBodyExperimenter implements MutableStructure
MBodyExperimenter.version| Constructor and Description |
|---|
MBodyMutableExperimenter(ProtocolVersion pv)
Constructs a mutable multipart body EXPERIMENTER extension type.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutableExperimenter |
data(byte[] data)
Sets the experimenter-defined data; Since 1.0.
|
MBodyMutableExperimenter |
expId(ExperimenterId id)
Sets the experimenter ID; Since 1.0.
|
MBodyMutableExperimenter |
expId(int encodedId)
Sets the experimenter ID; Since 1.0.
|
MBodyMutableExperimenter |
expType(int expType)
Sets the experimenter 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.
|
getData, getExpId, getExpType, getId, getTotalLength, toDebugStringgetVersion, hex, hex, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringvalidatepublic MBodyMutableExperimenter(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 MBodyExperimenterpublic MBodyMutableExperimenter expId(ExperimenterId id)
id - the experimenter IDInvalidMutableException - if this instance is no longer writableNullPointerException - if id is nullpublic MBodyMutableExperimenter expId(int encodedId)
encodedId - the encoded experimenter IDInvalidMutableException - if this instance is no longer writablepublic MBodyMutableExperimenter expType(int expType)
expType - the experimenter typeInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version is < 1.2public MBodyMutableExperimenter data(byte[] data)
data - the dataInvalidMutableException - if this instance is no longer writableNullPointerException - if data is nullCopyright © 2014. All Rights Reserved.