Class DistributedStatisticStore
- java.lang.Object
-
- org.onosproject.store.statistic.impl.DistributedStatisticStore
-
- All Implemented Interfaces:
org.onosproject.net.statistic.StatisticStore
public class DistributedStatisticStore extends java.lang.Object implements org.onosproject.net.statistic.StatisticStoreMaintains statistics using RPC calls to collect stats from remote instances on demand.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.onosproject.cfg.ComponentConfigServicecfgServiceprotected org.onosproject.store.cluster.messaging.ClusterCommunicationServiceclusterCommunicatorprotected org.onosproject.cluster.ClusterServiceclusterServicestatic org.onosproject.store.cluster.messaging.MessageSubjectGET_CURRENTstatic org.onosproject.store.cluster.messaging.MessageSubjectGET_PREVIOUSprotected org.onosproject.mastership.MastershipServicemastershipServiceprotected static org.onosproject.store.service.SerializerSERIALIZER
-
Constructor Summary
Constructors Constructor Description DistributedStatisticStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext context)voidaddOrUpdateStatistic(org.onosproject.net.flow.FlowEntry rule)voiddeactivate()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)voidmodified(org.osgi.service.component.ComponentContext context)voidprepareForStatistics(org.onosproject.net.flow.FlowRule rule)voidremoveFromStatistics(org.onosproject.net.flow.FlowRule rule)
-
-
-
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
-
-
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:
prepareForStatisticsin interfaceorg.onosproject.net.statistic.StatisticStore
-
removeFromStatistics
public void removeFromStatistics(org.onosproject.net.flow.FlowRule rule)
- Specified by:
removeFromStatisticsin interfaceorg.onosproject.net.statistic.StatisticStore
-
addOrUpdateStatistic
public void addOrUpdateStatistic(org.onosproject.net.flow.FlowEntry rule)
- Specified by:
addOrUpdateStatisticin interfaceorg.onosproject.net.statistic.StatisticStore
-
getCurrentStatistic
public java.util.Set<org.onosproject.net.flow.FlowEntry> getCurrentStatistic(org.onosproject.net.ConnectPoint connectPoint)
- Specified by:
getCurrentStatisticin interfaceorg.onosproject.net.statistic.StatisticStore
-
getPreviousStatistic
public java.util.Set<org.onosproject.net.flow.FlowEntry> getPreviousStatistic(org.onosproject.net.ConnectPoint connectPoint)
- Specified by:
getPreviousStatisticin interfaceorg.onosproject.net.statistic.StatisticStore
-
-