public class OfmMutableEchoRequest extends OfmEchoRequest implements MutableMessage
OfmEchoRequest.OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableEchoRequest |
data(byte[] data)
Sets the data; Since 1.0.
|
byte[] |
getData()
Returns a copy of the data.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
decodeHeader, getType, getVersion, getXid, hex, hex, length, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic void clearXid()
MutableMessageclearXid in interface MutableMessagepublic 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 MutableMessagepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
public OfmMutableEchoRequest data(byte[] data)
data - the dataNullPointerException - if data is nullInvalidMutableException - if this instance is no longer writablepublic String toDebugString()
OpenflowMessageOpenflowMessage.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowMessagepublic byte[] getData()
Copyright © 2014. All Rights Reserved.