public class OfmMutableErrorExper extends OfmErrorExper implements MutableMessage
OfmErrorExper
.length
Modifier and Type | Method and Description |
---|---|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
void |
setData(byte[] data)
Sets the data; Since 1.2.
|
void |
setExpId(ExperimenterId id)
Sets the experimenter ID; Since 1.2.
|
void |
setExpId(int expId)
Sets the experimenter ID; Since 1.2.
|
void |
setExpType(int expType)
Sets the experimenter-defined 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.
|
getExpId, getExpType, getId, validate
getData, getErrorCode, getErrorMessage, getErrorType, toDebugString
decodeHeader, getType, getVersion, getXid, hex, hex, length
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 OfmErrorExper
public void setExpType(int expType)
expType
- the experimenter-defined typeInvalidMutableException
- if this instance is no longer writablepublic void setExpId(int expId)
expId
- the experimenter IDInvalidMutableException
- if this instance is no longer writablepublic void setExpId(ExperimenterId id)
id
- the experimenter identifierInvalidMutableException
- if this instance is no longer writablepublic void setData(byte[] data)
data
- the dataInvalidMutableException
- if this instance is no longer writableCopyright © 2015. All Rights Reserved.