Class DistributedStatisticStore

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

    public class DistributedStatisticStore
    extends java.lang.Object
    implements org.onosproject.net.statistic.StatisticStore
    Maintains 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 addOrUpdateStatistic​(org.onosproject.net.flow.FlowEntry rule)  
      void deactivate()  
      java.util.Set<org.onosproject.net.flow.FlowEntry> getCurrentStatistic​(org.onosproject.net.ConnectPoint connectPoint)  
      java.util.Set<org.onosproject.net.flow.FlowEntry> getPreviousStatistic​(org.onosproject.net.ConnectPoint connectPoint)  
      void modified​(org.osgi.service.component.ComponentContext context)  
      void prepareForStatistics​(org.onosproject.net.flow.FlowRule rule)  
      void removeFromStatistics​(org.onosproject.net.flow.FlowRule 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

      • DistributedStatisticStore

        public DistributedStatisticStore()
    • 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)
      • prepareForStatistics

        public void prepareForStatistics​(org.onosproject.net.flow.FlowRule rule)
        Specified by:
        prepareForStatistics in interface org.onosproject.net.statistic.StatisticStore
      • removeFromStatistics

        public void removeFromStatistics​(org.onosproject.net.flow.FlowRule rule)
        Specified by:
        removeFromStatistics in interface org.onosproject.net.statistic.StatisticStore
      • addOrUpdateStatistic

        public void addOrUpdateStatistic​(org.onosproject.net.flow.FlowEntry rule)
        Specified by:
        addOrUpdateStatistic in interface org.onosproject.net.statistic.StatisticStore
      • getCurrentStatistic

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

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