Class 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.PolicerConfigurable
    Implementation of policer config which allows to add, delete and get policers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPolicer​(org.onosproject.net.behaviour.trafficcontrol.Policer policer)  
      org.onosproject.net.behaviour.trafficcontrol.PolicerId allocatePolicerId()  
      void deletePolicer​(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)  
      void freePolicerId​(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)  
      org.onosproject.net.behaviour.trafficcontrol.Policer getPolicer​(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
      • Methods inherited from class org.onosproject.net.driver.AbstractBehaviour

        data, setData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.driver.Behaviour

        data, setData
      • Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour

        handler, setHandler
    • Constructor Detail

      • OpenFlowPolicerConfigurable

        public OpenFlowPolicerConfigurable()
    • Method Detail

      • allocatePolicerId

        public org.onosproject.net.behaviour.trafficcontrol.PolicerId allocatePolicerId()
        Specified by:
        allocatePolicerId in interface org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
      • freePolicerId

        public void freePolicerId​(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)
        Specified by:
        freePolicerId in interface org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
      • addPolicer

        public void addPolicer​(org.onosproject.net.behaviour.trafficcontrol.Policer policer)
        Specified by:
        addPolicer in interface org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
      • deletePolicer

        public void deletePolicer​(org.onosproject.net.behaviour.trafficcontrol.PolicerId id)
        Specified by:
        deletePolicer in interface org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
      • getPolicer

        public org.onosproject.net.behaviour.trafficcontrol.Policer getPolicer​(org.onosproject.net.behaviour.trafficcontrol.PolicerId policerId)
        Specified by:
        getPolicer in interface org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable
      • getPolicers

        public java.util.Collection<org.onosproject.net.behaviour.trafficcontrol.Policer> getPolicers()
        Specified by:
        getPolicers in interface org.onosproject.net.behaviour.trafficcontrol.PolicerConfigurable