public class OfmMutablePacketOut extends OfmPacketOut implements MutableMessage
OfmPacketOut
.length
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.
|
OfmMutablePacketOut |
clearActions()
Clears any previously added actions.
|
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.
|
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, validate
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 OfmPacketOut
public OfmMutablePacketOut bufferId(BufferId bufferId)
bufferId
- the buffer idInvalidMutableException
- if this instance is no longer writableNullPointerException
- if bufferId is nullpublic OfmMutablePacketOut inPort(BigPortNumber inPort)
MAX
) or
CONTROLLER
.
(For 1.0, NONE
can also be used.)
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 invalidPort
public 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 clearActions()
InvalidMutableException
- if this instance is no longer writablepublic OfmMutablePacketOut data(byte[] data)
data
- the frame dataInvalidMutableException
- if this instance is no longer writableNullPointerException
- if data is nullCopyright © 2015. All Rights Reserved.