Class DistributedStatisticStore

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

    public class DistributedStatisticStore
    extends Object
    implements org.onosproject.net.statistic.StatisticStore
    Maintains statistics using RPC calls to collect stats from remote instances on demand.
    • 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 Set<org.onosproject.net.flow.FlowEntry> getCurrentStatistic​(org.onosproject.net.ConnectPoint connectPoint)
        Specified by:
        getCurrentStatistic in interface org.onosproject.net.statistic.StatisticStore
      • getPreviousStatistic

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