Class OpenFlowPolicerConfigurable
- java.lang.Object
-
- org.onosproject.net.driver.AbstractBehaviour
-
- org.onosproject.net.driver.AbstractHandlerBehaviour
-
- org.onosproject.driver.trafficcontrol.OpenFlowPolicerConfigurable
-
- All Implemented Interfaces:
org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable,org.onosproject.net.driver.Behaviour,org.onosproject.net.driver.HandlerBehaviour
public class OpenFlowPolicerConfigurable extends org.onosproject.net.driver.AbstractHandlerBehaviour implements org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurableImplementation of policer config which allows to add, delete and get policers.
-
-
Constructor Summary
Constructors Constructor Description OpenFlowPolicerConfigurable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPolicer(org.onosproject.net.behaviour.trafficcontrol.Policer policer)org.onosproject.net.behaviour.trafficcontrol.PolicerIdallocatePolicerId()voiddeletePolicer(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)voidfreePolicerId(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)org.onosproject.net.behaviour.trafficcontrol.PolicergetPolicer(org.onosproject.net.behaviour.trafficcontrol.PolicerId policerId)java.util.Collection<org.onosproject.net.behaviour.trafficcontrol.Policer>getPolicers()-
Methods inherited from class org.onosproject.net.driver.AbstractHandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
allocatePolicerId
public org.onosproject.net.behaviour.trafficcontrol.PolicerId allocatePolicerId()
- Specified by:
allocatePolicerIdin interfaceorg.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
-
freePolicerId
public void freePolicerId(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)
- Specified by:
freePolicerIdin interfaceorg.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
-
addPolicer
public void addPolicer(org.onosproject.net.behaviour.trafficcontrol.Policer policer)
- Specified by:
addPolicerin interfaceorg.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
-
deletePolicer
public void deletePolicer(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)
- Specified by:
deletePolicerin interfaceorg.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
-
getPolicer
public org.onosproject.net.behaviour.trafficcontrol.Policer getPolicer(org.onosproject.net.behaviour.trafficcontrol.PolicerId policerId)
- Specified by:
getPolicerin interfaceorg.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
-
getPolicers
public java.util.Collection<org.onosproject.net.behaviour.trafficcontrol.Policer> getPolicers()
- Specified by:
getPolicersin interfaceorg.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
-
-