public abstract class FlowModBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.DeviceId |
deviceId |
protected Optional<org.onosproject.net.driver.DriverService> |
driverService |
protected Long |
xid |
| Modifier | Constructor and Description |
|---|---|
protected |
FlowModBuilder(org.onosproject.net.flow.FlowRule flowRule,
org.projectfloodlight.openflow.protocol.OFFactory factory,
Optional<Long> xid,
Optional<org.onosproject.net.driver.DriverService> driverService)
Constructs a flow mod builder.
|
| Modifier and Type | Method and Description |
|---|---|
static FlowModBuilder |
builder(org.onosproject.net.flow.FlowRule flowRule,
org.projectfloodlight.openflow.protocol.OFFactory factory,
Optional<Long> xid,
Optional<org.onosproject.net.driver.DriverService> driverService)
Creates a new flow mod builder.
|
abstract org.projectfloodlight.openflow.protocol.OFFlowMod |
buildFlowAdd()
Builds an ADD flow mod.
|
abstract org.projectfloodlight.openflow.protocol.OFFlowMod |
buildFlowDel()
Builds a DELETE flow mod.
|
abstract org.projectfloodlight.openflow.protocol.OFFlowMod |
buildFlowMod()
Builds a MODIFY flow mod.
|
protected org.projectfloodlight.openflow.protocol.match.Match |
buildMatch()
Builds the match for the flow mod.
|
protected org.projectfloodlight.openflow.protocol.OFFactory |
factory()
Returns the factory used for building OpenFlow constructs.
|
protected org.onosproject.net.flow.FlowRule |
flowRule()
Returns the flow rule for this builder.
|
protected final Long xid
protected final Optional<org.onosproject.net.driver.DriverService> driverService
protected final org.onosproject.net.DeviceId deviceId
protected FlowModBuilder(org.onosproject.net.flow.FlowRule flowRule,
org.projectfloodlight.openflow.protocol.OFFactory factory,
Optional<Long> xid,
Optional<org.onosproject.net.driver.DriverService> driverService)
flowRule - the flow rule to transform into a flow modfactory - the OpenFlow factory to use to build the flow moddriverService - the device driver servicexid - the transaction IDpublic static FlowModBuilder builder(org.onosproject.net.flow.FlowRule flowRule, org.projectfloodlight.openflow.protocol.OFFactory factory, Optional<Long> xid, Optional<org.onosproject.net.driver.DriverService> driverService)
flowRule - the flow rule to transform into a flow modfactory - the OpenFlow factory to use to build the flow modxid - the transaction IDdriverService - the device driver servicepublic abstract org.projectfloodlight.openflow.protocol.OFFlowMod buildFlowAdd()
public abstract org.projectfloodlight.openflow.protocol.OFFlowMod buildFlowMod()
public abstract org.projectfloodlight.openflow.protocol.OFFlowMod buildFlowDel()
protected org.projectfloodlight.openflow.protocol.match.Match buildMatch()
protected org.onosproject.net.flow.FlowRule flowRule()
protected org.projectfloodlight.openflow.protocol.OFFactory factory()