public class OfmMutablePacketOut extends OfmPacketOut implements MutableMessage
OfmPacketOut.OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
OfmMutablePacketOut |
addAction(Action act)
Adds an action to the action list; Since 1.0; Removed at 1.1.
|
OfmMutablePacketOut |
bufferId(BufferId bufferId)
Sets the buffer id; Since 1.0.
|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutablePacketOut |
data(byte[] data)
Sets the packet frame data; Since 1.0.
|
OfmMutablePacketOut |
inPort(BigPortNumber inPort)
Sets the ingress port that must be associated with the packet;
Since 1.0.
|
OfmMutablePacketOut |
inPort(OfmPacketIn pktIn)
Deprecated.
|
void |
resetWritable() |
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getActions, getBufferId, getData, getDataLength, getInPort, toDebugString, toDebugString, validatedecodeHeader, getType, getVersion, getXid, hex, hex, lengthclone, 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()
toString in class OfmPacketOutpublic OfmMutablePacketOut bufferId(BufferId bufferId)
bufferId - the buffer idInvalidMutableException - if this instance is no longer writableNullPointerException - if bufferId is nullpublic OfmMutablePacketOut inPort(BigPortNumber inPort)
Note that in 1.0, port numbers are u16.
inPort - the ingress portInvalidMutableException - if this instance is no longer writableNullPointerException - if inPort is nullIllegalArgumentException - if the port number is invalidPort@Deprecated public OfmMutablePacketOut inPort(OfmPacketIn pktIn)
Note that in 1.0, port numbers are u16.
pktIn - the ingress portInvalidMutableException - if this instance is no longer writableNullPointerException - if inPort is nullIllegalArgumentException - if the port number is invalidPortpublic OfmMutablePacketOut addAction(Action act)
act - the action to addInvalidMutableException - if this instance is no longer writableVersionMismatchException - if action version does not matchNullPointerException - if act is nullpublic OfmMutablePacketOut data(byte[] data)
data - the frame dataInvalidMutableException - if this instance is no longer writableNullPointerException - if data is nullpublic void resetWritable()
Copyright © 2014. All Rights Reserved.