Class PolicyManager

  • All Implemented Interfaces:
    org.onosproject.segmentrouting.policy.api.PolicyService

    public class PolicyManager
    extends Object
    implements org.onosproject.segmentrouting.policy.api.PolicyService
    Implementation of the policy service interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onlab.util.PredictableExecutor workers  
      • Fields inherited from interface org.onosproject.segmentrouting.policy.api.PolicyService

        TRAFFIC_MATCH_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      PolicyManager()  
    • Field Detail

      • workers

        protected org.onlab.util.PredictableExecutor workers
    • Constructor Detail

      • PolicyManager

        public PolicyManager()
    • Method Detail

      • activate

        public void activate()
      • deactivate

        public void deactivate()
      • addOrUpdatePolicy

        public org.onosproject.segmentrouting.policy.api.PolicyId addOrUpdatePolicy​(org.onosproject.segmentrouting.policy.api.Policy policy)
        Specified by:
        addOrUpdatePolicy in interface org.onosproject.segmentrouting.policy.api.PolicyService
      • removePolicy

        public boolean removePolicy​(org.onosproject.segmentrouting.policy.api.PolicyId policyId)
        Specified by:
        removePolicy in interface org.onosproject.segmentrouting.policy.api.PolicyService
      • policies

        public Set<org.onosproject.segmentrouting.policy.api.PolicyData> policies​(Set<org.onosproject.segmentrouting.policy.api.Policy.PolicyType> filter)
        Specified by:
        policies in interface org.onosproject.segmentrouting.policy.api.PolicyService
      • addOrUpdateTrafficMatch

        public org.onosproject.segmentrouting.policy.api.TrafficMatchId addOrUpdateTrafficMatch​(org.onosproject.segmentrouting.policy.api.TrafficMatch trafficMatch)
        Specified by:
        addOrUpdateTrafficMatch in interface org.onosproject.segmentrouting.policy.api.PolicyService
      • removeTrafficMatch

        public boolean removeTrafficMatch​(org.onosproject.segmentrouting.policy.api.TrafficMatchId trafficMatchId)
        Specified by:
        removeTrafficMatch in interface org.onosproject.segmentrouting.policy.api.PolicyService
      • trafficMatches

        public Set<org.onosproject.segmentrouting.policy.api.TrafficMatchData> trafficMatches()
        Specified by:
        trafficMatches in interface org.onosproject.segmentrouting.policy.api.PolicyService