public class MBodyMutableExperimenter extends MBodyExperimenter implements MutableStructure
MBodyExperimenter
.parseErrorCause, 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, toDebugString
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
validate
public 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 MutableStructure
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 MBodyExperimenter
public 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 © 2016. All Rights Reserved.