|
||||||||||
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.OFFlowMod
public class OFFlowMod
Represents an ofp_flow_mod message
Field Summary | |
---|---|
protected int |
bufferId
|
protected byte |
command
|
protected long |
cookie
|
protected long |
cookieMask
|
protected short |
flags
|
protected short |
hardTimeout
|
protected short |
idleTimeout
|
protected OFInstructionFactory |
instructionFactory
|
protected java.util.List<OFInstruction> |
instructions
|
protected OFMatch |
match
|
static int |
MINIMUM_LENGTH
|
static byte |
OFPFC_ADD
|
static byte |
OFPFC_DELETE
|
static byte |
OFPFC_DELETE_STRICT
|
static byte |
OFPFC_MODIFY
|
static byte |
OFPFC_MODIFY_STRICT
|
static short |
OFPFF_CHECK_OVERLAP
|
static short |
OFPFF_NO_BYT_COUNTS
|
static short |
OFPFF_NO_PKT_COUNTS
|
static short |
OFPFF_RESET_COUNTS
|
static short |
OFPFF_SEND_FLOW_REM
|
protected int |
outGroup
|
protected int |
outPort
|
protected short |
priority
|
protected byte |
tableId
|
Fields inherited from class org.openflow.protocol.OFMessage |
---|
length, OFP_VERSION, type, version, xid |
Constructor Summary | |
---|---|
OFFlowMod()
|
Method Summary | |
---|---|
OFFlowMod |
clone()
|
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)
|
int |
getBufferId()
Get buffer_id |
byte |
getCommand()
Get command |
long |
getCookie()
Get cookie |
long |
getCookieMask()
Get cookieMask |
short |
getFlags()
Get flags, see OFPFF_* constants |
short |
getHardTimeout()
Get hard_timeout |
short |
getIdleTimeout()
Get idle_timeout |
java.util.List<OFInstruction> |
getInstructions()
Returns read-only copies of the instructions contained in this Flow Mod |
OFMatch |
getMatch()
Gets a copy of the OFMatch object for this FlowMod, changes to this object do not modify the FlowMod |
int |
getOutGroup()
Get out_group |
int |
getOutPort()
Get out_port |
short |
getPriority()
Get priority |
byte |
getTableId()
Get tableId |
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
OFFlowMod |
setBufferId(int bufferId)
Set buffer_id |
OFFlowMod |
setCommand(byte command)
Set command |
OFFlowMod |
setCookie(long cookie)
Set cookie |
OFFlowMod |
setCookieMask(long cookieMask)
Set cookieMask |
OFFlowMod |
setFlags(short flags)
Set flags, see OFPFF_* constants |
OFFlowMod |
setHardTimeout(short hardTimeout)
Set hard_timeout |
OFFlowMod |
setIdleTimeout(short idleTimeout)
Set idle_timeout |
void |
setInstructionFactory(OFInstructionFactory instructionFactory)
Sets the OFInstructionFactory |
OFFlowMod |
setInstructions(java.util.List<OFInstruction> instructions)
Sets the list of instructions this Flow Mod contains |
OFFlowMod |
setMatch(OFMatch match)
Set match |
OFFlowMod |
setOutGroup(int outGroup)
Set out_group |
OFFlowMod |
setOutGroup(OFGroup group)
Set out_group |
OFFlowMod |
setOutPort(int outPort)
Set out_port |
OFFlowMod |
setOutPort(OFPort port)
Set out_port |
OFFlowMod |
setPriority(short priority)
Set priority |
OFFlowMod |
setTableId(byte tableId)
Set tableId |
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 |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
public static final byte OFPFC_ADD
public static final byte OFPFC_MODIFY
public static final byte OFPFC_MODIFY_STRICT
public static final byte OFPFC_DELETE
public static final byte OFPFC_DELETE_STRICT
public static final short OFPFF_SEND_FLOW_REM
public static final short OFPFF_CHECK_OVERLAP
public static final short OFPFF_RESET_COUNTS
public static final short OFPFF_NO_PKT_COUNTS
public static final short OFPFF_NO_BYT_COUNTS
protected OFInstructionFactory instructionFactory
protected long cookie
protected long cookieMask
protected byte tableId
protected byte command
protected short idleTimeout
protected short hardTimeout
protected short priority
protected int bufferId
protected int outPort
protected int outGroup
protected short flags
protected OFMatch match
protected java.util.List<OFInstruction> instructions
Constructor Detail |
---|
public OFFlowMod()
Method Detail |
---|
public int getBufferId()
public OFFlowMod setBufferId(int bufferId)
bufferId
- public long getCookie()
public OFFlowMod setCookie(long cookie)
cookie
- public long getCookieMask()
public OFFlowMod setCookieMask(long cookieMask)
cookieMask
- public byte getTableId()
public OFFlowMod setTableId(byte tableId)
tableId
- public byte getCommand()
public OFFlowMod setCommand(byte command)
command
- public short getFlags()
public OFFlowMod setFlags(short flags)
flags
- public short getHardTimeout()
public OFFlowMod setHardTimeout(short hardTimeout)
hardTimeout
- public short getIdleTimeout()
public OFFlowMod setIdleTimeout(short idleTimeout)
idleTimeout
- public OFMatch getMatch()
public OFFlowMod setMatch(OFMatch match)
match
- public int getOutPort()
public OFFlowMod setOutPort(int outPort)
outPort
- public OFFlowMod setOutPort(OFPort port)
port
- public int getOutGroup()
public OFFlowMod setOutGroup(int outGroup)
outGroup
- public OFFlowMod setOutGroup(OFGroup group)
group
- objectpublic short getPriority()
public OFFlowMod setPriority(short priority)
priority
- public java.util.List<OFInstruction> getInstructions()
public OFFlowMod setInstructions(java.util.List<OFInstruction> instructions)
instructions
- a list of ordered OFInstruction objectspublic void readFrom(java.nio.ByteBuffer data)
OFMessage
readFrom
in class OFMessage
public void writeTo(java.nio.ByteBuffer data)
OFMessage
writeTo
in class OFMessage
public void setInstructionFactory(OFInstructionFactory instructionFactory)
OFInstructionFactoryAware
setInstructionFactory
in interface OFInstructionFactoryAware
public int hashCode()
hashCode
in class OFMessage
public boolean equals(java.lang.Object obj)
equals
in class OFMessage
public OFFlowMod clone()
clone
in class java.lang.Object
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 |