Class DistributedFlowStatisticStore
- java.lang.Object
-
- org.onosproject.store.statistic.impl.DistributedFlowStatisticStore
-
- All Implemented Interfaces:
org.onosproject.net.statistic.FlowStatisticStore
public class DistributedFlowStatisticStore extends java.lang.Object implements org.onosproject.net.statistic.FlowStatisticStoreMaintains 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.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 DistributedFlowStatisticStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext context)voidaddFlowStatistic(org.onosproject.net.flow.FlowEntry rule)voiddeactivate()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)voidmodified(org.osgi.service.component.ComponentContext context)voidremoveFlowStatistic(org.onosproject.net.flow.FlowRule rule)voidupdateFlowStatistic(org.onosproject.net.flow.FlowEntry 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)
-
removeFlowStatistic
public void removeFlowStatistic(org.onosproject.net.flow.FlowRule rule)
- Specified by:
removeFlowStatisticin interfaceorg.onosproject.net.statistic.FlowStatisticStore
-
addFlowStatistic
public void addFlowStatistic(org.onosproject.net.flow.FlowEntry rule)
- Specified by:
addFlowStatisticin interfaceorg.onosproject.net.statistic.FlowStatisticStore
-
updateFlowStatistic
public void updateFlowStatistic(org.onosproject.net.flow.FlowEntry rule)
- Specified by:
updateFlowStatisticin interfaceorg.onosproject.net.statistic.FlowStatisticStore
-
getCurrentFlowStatistic
public java.util.Set<org.onosproject.net.flow.FlowEntry> getCurrentFlowStatistic(org.onosproject.net.ConnectPoint connectPoint)
- Specified by:
getCurrentFlowStatisticin interfaceorg.onosproject.net.statistic.FlowStatisticStore
-
getPreviousFlowStatistic
public java.util.Set<org.onosproject.net.flow.FlowEntry> getPreviousFlowStatistic(org.onosproject.net.ConnectPoint connectPoint)
- Specified by:
getPreviousFlowStatisticin interfaceorg.onosproject.net.statistic.FlowStatisticStore
-
-