public class OFFlowMod extends OFMessage implements OFActionFactoryAware, Cloneable
Modifier and Type | Field and Description |
---|---|
protected OFActionFactory |
actionFactory |
protected List<OFAction> |
actions |
protected int |
bufferId |
protected short |
command |
protected long |
cookie |
protected short |
flags |
protected short |
hardTimeout |
protected short |
idleTimeout |
protected OFMatch |
match |
static int |
MINIMUM_LENGTH |
static short |
OFPFC_ADD |
static short |
OFPFC_DELETE |
static short |
OFPFC_DELETE_STRICT |
static short |
OFPFC_MODIFY |
static short |
OFPFC_MODIFY_STRICT |
static short |
OFPFF_CHECK_OVERLAP |
static short |
OFPFF_EMERG |
static short |
OFPFF_SEND_FLOW_REM |
protected short |
outPort |
protected short |
priority |
Constructor and Description |
---|
OFFlowMod() |
Modifier and Type | Method and Description |
---|---|
OFFlowMod |
clone() |
boolean |
equals(Object obj) |
List<OFAction> |
getActions()
Returns read-only copies of the actions contained in this Flow Mod
|
int |
getBufferId()
Get buffer_id
|
short |
getCommand()
Get command
|
long |
getCookie()
Get cookie
|
short |
getFlags()
Get flags
|
short |
getHardTimeout()
Get hard_timeout
|
short |
getIdleTimeout()
Get idle_timeout
|
OFMatch |
getMatch()
Gets a copy of the OFMatch object for this FlowMod, changes to this
object do not modify the FlowMod
|
short |
getOutPort()
Get out_port
|
short |
getPriority()
Get priority
|
int |
hashCode() |
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer data)
Read this message off the wire from the specified ByteBuffer
|
void |
setActionFactory(OFActionFactory actionFactory)
Sets the OFActionFactory
|
OFFlowMod |
setActions(List<OFAction> actions)
Sets the list of actions this Flow Mod contains
|
OFFlowMod |
setBufferId(int bufferId)
Set buffer_id
|
OFFlowMod |
setCommand(short command)
Set command
|
OFFlowMod |
setCookie(long cookie)
Set cookie
|
OFFlowMod |
setFlags(short flags)
Set flags
|
OFFlowMod |
setHardTimeout(short hardTimeout)
Set hard_timeout
|
OFFlowMod |
setIdleTimeout(short idleTimeout)
Set idle_timeout
|
OFFlowMod |
setMatch(OFMatch match)
Set match
|
OFFlowMod |
setOutPort(OFPort port)
Set out_port
|
OFFlowMod |
setOutPort(short outPort)
Set out_port
|
OFFlowMod |
setPriority(short priority)
Set priority
|
String |
toString()
Returns a summary of the message
|
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Write this message's binary format to the specified ByteBuffer
|
getData, getDataAsString, getLength, getLengthU, getMessageStore, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid
public static int MINIMUM_LENGTH
public static final short OFPFC_ADD
public static final short OFPFC_MODIFY
public static final short OFPFC_MODIFY_STRICT
public static final short OFPFC_DELETE
public static final short OFPFC_DELETE_STRICT
public static final short OFPFF_SEND_FLOW_REM
public static final short OFPFF_CHECK_OVERLAP
public static final short OFPFF_EMERG
protected OFActionFactory actionFactory
protected OFMatch match
protected long cookie
protected short command
protected short idleTimeout
protected short hardTimeout
protected short priority
protected int bufferId
protected short outPort
protected short flags
public int getBufferId()
public OFFlowMod setBufferId(int bufferId)
bufferId
- public long getCookie()
public OFFlowMod setCookie(long cookie)
cookie
- public short getCommand()
public OFFlowMod setCommand(short 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 short getOutPort()
public OFFlowMod setOutPort(short outPort)
outPort
- public short getPriority()
public OFFlowMod setPriority(short priority)
priority
- public List<OFAction> getActions()
public OFFlowMod setActions(List<OFAction> actions)
actions
- a list of ordered OFAction objectspublic void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
public void setActionFactory(OFActionFactory actionFactory)
OFActionFactoryAware
setActionFactory
in interface OFActionFactoryAware
public OFFlowMod clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2015. All rights reserved.