public class DefaultFlowRule extends Object implements FlowRule
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultFlowRule.Builder |
FlowRule.TypeMAX_TIMEOUT, MIN_PRIORITY| Constructor and Description |
|---|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
GroupId groupId,
int timeout,
boolean permanent)
Deprecated.
|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
GroupId groupId,
int timeout,
boolean permanent,
FlowRuleExtPayLoad payLoad)
Support for the third party flow rule.
|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
int timeout,
boolean permanent)
Deprecated.
|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
int timeout,
boolean permanent,
FlowRule.Type type)
Deprecated.
|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
int timeout,
boolean permanent,
FlowRuleExtPayLoad payLoad)
Support for the third party flow rule.
|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
long flowId,
int timeout,
boolean permanent)
Deprecated.
|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
long flowId,
int timeout,
boolean permanent,
FlowRule.Type tableType)
Deprecated.
|
DefaultFlowRule(FlowRule rule) |
| Modifier and Type | Method and Description |
|---|---|
short |
appId()
Returns the application id of this flow.
|
static DefaultFlowRule.Builder |
builder() |
DeviceId |
deviceId()
Returns the identity of the device where this rule applies.
|
boolean |
equals(Object obj) |
GroupId |
groupId()
Returns the group id of this flow.
|
int |
hashCode() |
FlowId |
id()
Returns the ID of this flow.
|
boolean |
isPermanent()
Returns whether the flow is permanent i.e.
|
FlowRuleExtPayLoad |
payLoad()
Returns the third party original flow rule.
|
int |
priority()
Returns the flow rule priority given in natural order; higher numbers
mean higher priorities.
|
TrafficSelector |
selector()
Returns the traffic selector that identifies what traffic this rule
should apply to.
|
int |
tableId()
Returns the table id for this rule.
|
int |
timeout()
Returns the timeout for this flow requested by an application.
|
String |
toString() |
TrafficTreatment |
treatment()
Returns the traffic treatment that applies to selected traffic.
|
@Deprecated public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, long flowId, int timeout, boolean permanent)
@Deprecated public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, long flowId, int timeout, boolean permanent, FlowRule.Type tableType)
@Deprecated public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, ApplicationId appId, int timeout, boolean permanent)
@Deprecated public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, ApplicationId appId, int timeout, boolean permanent, FlowRule.Type type)
@Deprecated public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, ApplicationId appId, GroupId groupId, int timeout, boolean permanent)
public DefaultFlowRule(FlowRule rule)
public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, ApplicationId appId, int timeout, boolean permanent, FlowRuleExtPayLoad payLoad)
deviceId - the identity of the device where this rule appliesselector - the traffic selector that identifies what traffic this
ruletreatment - the traffic treatment that applies to selected trafficpriority - the flow rule priority given in natural orderappId - the application id of this flowtimeout - the timeout for this flow requested by an applicationpermanent - whether the flow is permanent i.e. does not time outpayLoad - 3rd-party origin private flowpublic DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, ApplicationId appId, GroupId groupId, int timeout, boolean permanent, FlowRuleExtPayLoad payLoad)
deviceId - the identity of the device where this rule appliesselector - the traffic selector that identifies what traffic this
ruletreatment - the traffic treatment that applies to selected trafficpriority - the flow rule priority given in natural orderappId - the application id of this flowgroupId - the group id of this flowtimeout - the timeout for this flow requested by an applicationpermanent - whether the flow is permanent i.e. does not time outpayLoad - 3rd-party origin private flowpublic short appId()
FlowRulepublic GroupId groupId()
FlowRulepublic int priority()
FlowRulepublic DeviceId deviceId()
FlowRulepublic TrafficSelector selector()
FlowRulepublic TrafficTreatment treatment()
FlowRulepublic int timeout()
FlowRulepublic boolean isPermanent()
FlowRuleisPermanent in interface FlowRulepublic int tableId()
FlowRulepublic static DefaultFlowRule.Builder builder()
public FlowRuleExtPayLoad payLoad()
FlowRuleCopyright © 2015. All rights reserved.