public class DefaultFlowRule extends Object implements FlowRule
MAX_TIMEOUT, MIN_PRIORITY| Constructor and Description |
|---|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
GroupId groupId,
int timeout,
boolean permanent) |
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
int timeout,
boolean permanent) |
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
ApplicationId appId,
short groupId,
int timeout,
boolean permanent)
Deprecated.
|
DefaultFlowRule(DeviceId deviceId,
TrafficSelector selector,
TrafficTreatment treatment,
int priority,
long flowId,
int timeout,
boolean permanent) |
DefaultFlowRule(FlowRule rule) |
| Modifier and Type | Method and Description |
|---|---|
short |
appId()
Returns the application id of this flow.
|
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 |
hash() |
int |
hashCode() |
FlowId |
id()
Returns the ID of this flow.
|
boolean |
isPermanent()
Returns whether the flow is permanent i.e.
|
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 |
timeout()
Returns the timeout for this flow requested by an application.
|
String |
toString() |
TrafficTreatment |
treatment()
Returns the traffic treatment that applies to selected traffic.
|
public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, long flowId, int timeout, boolean permanent)
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, short groupId, int timeout, boolean permanent)
public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, TrafficTreatment treatment, int priority, ApplicationId appId, GroupId groupId, int timeout, boolean permanent)
public DefaultFlowRule(FlowRule rule)
public short appId()
FlowRulepublic GroupId groupId()
FlowRulepublic int priority()
FlowRulepublic DeviceId deviceId()
FlowRulepublic TrafficSelector selector()
FlowRulepublic TrafficTreatment treatment()
FlowRulepublic int hash()
public int timeout()
FlowRulepublic boolean isPermanent()
FlowRuleisPermanent in interface FlowRuleCopyright © 2015. All rights reserved.