Class DistributedFlowStatisticStore

  • All Implemented Interfaces:
    org.onosproject.net.statistic.FlowStatisticStore

    public class DistributedFlowStatisticStore
    extends java.lang.Object
    implements org.onosproject.net.statistic.FlowStatisticStore
    Maintains flow statistics using RPC calls to collect stats from remote instances on demand.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.onosproject.cfg.ComponentConfigService cfgService  
      protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator  
      protected org.onosproject.cluster.ClusterService clusterService  
      static org.onosproject.store.cluster.messaging.MessageSubject GET_CURRENT  
      static org.onosproject.store.cluster.messaging.MessageSubject GET_PREVIOUS  
      protected org.onosproject.mastership.MastershipService mastershipService  
      protected static org.onosproject.store.service.Serializer SERIALIZER  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate​(org.osgi.service.component.ComponentContext context)  
      void addFlowStatistic​(org.onosproject.net.flow.FlowEntry rule)  
      void deactivate()  
      java.util.Set<org.onosproject.net.flow.FlowEntry> getCurrentFlowStatistic​(org.onosproject.net.ConnectPoint connectPoint)  
      java.util.Set<org.onosproject.net.flow.FlowEntry> getPreviousFlowStatistic​(org.onosproject.net.ConnectPoint connectPoint)  
      void modified​(org.osgi.service.component.ComponentContext context)  
      void removeFlowStatistic​(org.onosproject.net.flow.FlowRule rule)  
      void updateFlowStatistic​(org.onosproject.net.flow.FlowEntry rule)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mastershipService

        protected org.onosproject.mastership.MastershipService mastershipService
      • clusterCommunicator

        protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
      • clusterService

        protected org.onosproject.cluster.ClusterService clusterService
      • cfgService

        protected org.onosproject.cfg.ComponentConfigService cfgService
      • GET_CURRENT

        public static final org.onosproject.store.cluster.messaging.MessageSubject GET_CURRENT
      • GET_PREVIOUS

        public static final org.onosproject.store.cluster.messaging.MessageSubject GET_PREVIOUS
      • SERIALIZER

        protected static final org.onosproject.store.service.Serializer SERIALIZER
    • Constructor Detail

      • DistributedFlowStatisticStore

        public DistributedFlowStatisticStore()
    • Method Detail

      • activate

        public void activate​(org.osgi.service.component.ComponentContext context)
      • deactivate

        public void deactivate()
      • modified

        public void modified​(org.osgi.service.component.ComponentContext context)
      • removeFlowStatistic

        public void removeFlowStatistic​(org.onosproject.net.flow.FlowRule rule)
        Specified by:
        removeFlowStatistic in interface org.onosproject.net.statistic.FlowStatisticStore
      • addFlowStatistic

        public void addFlowStatistic​(org.onosproject.net.flow.FlowEntry rule)
        Specified by:
        addFlowStatistic in interface org.onosproject.net.statistic.FlowStatisticStore
      • updateFlowStatistic

        public void updateFlowStatistic​(org.onosproject.net.flow.FlowEntry rule)
        Specified by:
        updateFlowStatistic in interface org.onosproject.net.statistic.FlowStatisticStore
      • getCurrentFlowStatistic

        public java.util.Set<org.onosproject.net.flow.FlowEntry> getCurrentFlowStatistic​(org.onosproject.net.ConnectPoint connectPoint)
        Specified by:
        getCurrentFlowStatistic in interface org.onosproject.net.statistic.FlowStatisticStore
      • getPreviousFlowStatistic

        public java.util.Set<org.onosproject.net.flow.FlowEntry> getPreviousFlowStatistic​(org.onosproject.net.ConnectPoint connectPoint)
        Specified by:
        getPreviousFlowStatistic in interface org.onosproject.net.statistic.FlowStatisticStore