public class Flow extends java.lang.Object implements FlowInterface
Modifier and Type | Class and Description |
---|---|
static class |
Flow.Builder
Builder class to generate a Flow object.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
appId
An application ID for a flow rule.
|
protected java.lang.Integer |
cookie
Flow rule cookie.
|
protected java.lang.String |
deviceID
Flow rule device ID.
|
protected java.util.List<FlowAction> |
flowActions
A List of flow actions.
|
protected java.lang.String |
flowID
flow rule ID.
|
protected FlowMatch |
flowMatch
An object of match fields.
|
protected boolean |
isPermanent |
protected java.lang.Integer |
priority
Priority of a flow.
|
protected java.lang.Integer |
tableID
Flow rule table ID.
|
protected java.lang.Integer |
timeOut
Flow rule time out.
|
Modifier | Constructor and Description |
---|---|
protected |
Flow()
Default constructor
|
protected |
Flow(Flow.Builder builder)
Constructor based on a builder
|
Modifier and Type | Method and Description |
---|---|
void |
addFlowAction(FlowAction action)
Adds a flow action object to a flow rule.
|
void |
addFlowActions(java.util.List<FlowAction> actions)
Adds a list of flow actions object to a flow rule.
|
void |
addFlowMatch(FlowMatch match)
Adds a flow match object to a flow rule.
|
static Flow.Builder |
builder()
Returns a builder object.
|
java.lang.String |
getAppId()
Returns the application ID.
|
java.lang.Integer |
getCookie()
Returns flow rule cookie.
|
java.lang.String |
getDeviceID()
Returns the device ID.
|
java.util.List<FlowAction> |
getFlowActions()
Returns the list of flow action objects.
|
java.lang.String |
getFlowID()
Returns flow rule ID.
|
FlowMatch |
getFlowMatch()
Returns the flow match fields object.
|
java.lang.Integer |
getPriority()
Returns the priority.
|
java.lang.Integer |
getTableID()
Returns the table ID.
|
java.lang.Integer |
getTimeOut()
Returns the flow time out.
|
boolean |
isPermanent()
Determine a flow is permenant or not.
|
void |
setFlowID(java.lang.String flowID)
Sets flow rule ID.
|
void |
setTableID(int tableID)
Sets table ID.
|
protected FlowMatch flowMatch
protected java.util.List<FlowAction> flowActions
protected java.lang.Integer priority
protected java.lang.Integer tableID
protected java.lang.String deviceID
protected java.lang.Integer timeOut
protected boolean isPermanent
protected java.lang.Integer cookie
protected java.lang.String appId
protected java.lang.String flowID
protected Flow()
protected Flow(Flow.Builder builder)
builder
- : Builder object to initialize the flowpublic static Flow.Builder builder()
public boolean isPermanent()
public java.lang.Integer getPriority()
public java.lang.Integer getTableID()
public void setTableID(int tableID)
tableID
- flow rule table ID.public java.lang.Integer getTimeOut()
public java.lang.String getAppId()
public java.lang.String getDeviceID()
public java.lang.String getFlowID()
public void setFlowID(java.lang.String flowID)
flowID
- flow rule ID.public java.lang.Integer getCookie()
public FlowMatch getFlowMatch()
getFlowMatch
in interface FlowInterface
public java.util.List<FlowAction> getFlowActions()
getFlowActions
in interface FlowInterface
public void addFlowMatch(FlowMatch match)
addFlowMatch
in interface FlowInterface
match
- match object.public void addFlowAction(FlowAction action)
addFlowAction
in interface FlowInterface
action
- flow action object.public void addFlowActions(java.util.List<FlowAction> actions)
addFlowActions
in interface FlowInterface
actions
- a list of flow action objects.