|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.OFMessage
org.openflow.protocol.OFPacketOut
public class OFPacketOut
Represents an ofp_packet_out message
Field Summary | |
---|---|
protected OFActionFactory |
actionFactory
|
protected java.util.List<OFAction> |
actions
|
protected short |
actionsLength
|
static int |
BUFFER_ID_NONE
|
protected int |
bufferId
|
protected int |
inPort
|
static int |
MINIMUM_LENGTH
|
protected byte[] |
packetData
|
Fields inherited from class org.openflow.protocol.OFMessage |
---|
length, OFP_VERSION, type, version, xid |
Constructor Summary | |
---|---|
OFPacketOut()
|
|
OFPacketOut(byte[] packetData,
java.util.List<OFAction> actions,
int bufferId)
Creates a OFPacketOut object with the packet's data, actions, and bufferId |
Method Summary | |
---|---|
void |
computeLength()
This method is called during the writeTo method for serialization and is expected to set the length of the message. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<OFAction> |
getActions()
Returns the actions contained in this message |
short |
getActionsLength()
Get actions_len |
int |
getActionsLengthU()
Get actions_len, unsigned |
int |
getBufferId()
Get buffer_id |
int |
getInPort()
Get in_port |
byte[] |
getPacketData()
Returns the packet data |
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
void |
setActionFactory(OFActionFactory actionFactory)
Sets the OFActionFactory |
OFPacketOut |
setActions(java.util.List<OFAction> actions)
Sets the list of actions on this message |
OFPacketOut |
setActionsLength(short actionsLength)
Set actions_len |
OFPacketOut |
setBufferId(int bufferId)
Set buffer_id |
OFPacketOut |
setInPort(int i)
Set in_port |
OFPacketOut |
setInPort(OFPort inPort)
Set in_port. |
OFPacketOut |
setPacketData(byte[] packetData)
Sets the packet data |
java.lang.String |
toString()
Returns a summary of the message |
void |
writeTo(java.nio.ByteBuffer data)
Write this message's binary format to the specified ByteBuffer |
Methods inherited from class org.openflow.protocol.OFMessage |
---|
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
public static int BUFFER_ID_NONE
protected OFActionFactory actionFactory
protected int bufferId
protected int inPort
protected short actionsLength
protected java.util.List<OFAction> actions
protected byte[] packetData
Constructor Detail |
---|
public OFPacketOut()
public OFPacketOut(byte[] packetData, java.util.List<OFAction> actions, int bufferId)
packetData
- the packet dataactions
- actions to apply to the packetbufferId
- the buffer idMethod Detail |
---|
public int getBufferId()
public OFPacketOut setBufferId(int bufferId)
bufferId
- public byte[] getPacketData()
public OFPacketOut setPacketData(byte[] packetData)
packetData
- public int getInPort()
public OFPacketOut setInPort(int i)
i
- public OFPacketOut setInPort(OFPort inPort)
inPort
- public short getActionsLength()
public int getActionsLengthU()
public OFPacketOut setActionsLength(short actionsLength)
actionsLength
- public java.util.List<OFAction> getActions()
public OFPacketOut setActions(java.util.List<OFAction> actions)
actions
- a list of ordered OFAction objectspublic void setActionFactory(OFActionFactory actionFactory)
OFActionFactoryAware
setActionFactory
in interface OFActionFactoryAware
public void readFrom(java.nio.ByteBuffer data)
OFMessage
readFrom
in class OFMessage
public void writeTo(java.nio.ByteBuffer data)
OFMessage
writeTo
in class OFMessage
public int hashCode()
hashCode
in class OFMessage
public boolean equals(java.lang.Object obj)
equals
in class OFMessage
public java.lang.String toString()
OFMessage
toString
in class OFMessage
public void computeLength()
OFMessage
computeLength
in class OFMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |