@Service
public class ECFlowRuleStore
extends org.onosproject.store.AbstractStore<org.onosproject.net.flow.oldbatch.FlowRuleBatchEvent,org.onosproject.net.flow.FlowRuleStoreDelegate>
implements org.onosproject.net.flow.FlowRuleStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.cluster.messaging.ClusterCommunicationService |
clusterCommunicator |
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.cfg.ComponentConfigService |
configService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected org.onosproject.store.service.AsyncConsistentMap<org.onosproject.net.DeviceId,java.lang.Long> |
mastershipTermLifecycles |
protected org.onosproject.persistence.PersistenceService |
persistenceService |
protected ReplicaInfoService |
replicaInfoManager |
protected org.onosproject.store.service.Serializer |
serializer |
protected org.onlab.util.KryoNamespace.Builder |
serializerBuilder |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
ECFlowRuleStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
org.onosproject.net.flow.FlowRuleEvent |
addOrUpdateFlowRule(org.onosproject.net.flow.FlowEntry rule) |
void |
batchOperationComplete(org.onosproject.net.flow.oldbatch.FlowRuleBatchEvent event) |
void |
deactivate(org.osgi.service.component.ComponentContext context) |
void |
deleteFlowRule(org.onosproject.net.flow.FlowRule rule) |
long |
getActiveFlowRuleCount(org.onosproject.net.DeviceId deviceId) |
java.lang.Iterable<org.onosproject.net.flow.FlowEntry> |
getFlowEntries(org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.flow.FlowEntry |
getFlowEntry(org.onosproject.net.flow.FlowRule rule) |
int |
getFlowRuleCount() |
int |
getFlowRuleCount(org.onosproject.net.DeviceId deviceId) |
int |
getFlowRuleCount(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.flow.FlowEntry.FlowEntryState state) |
java.lang.Iterable<org.onosproject.net.flow.TableStatisticsEntry> |
getTableStatistics(org.onosproject.net.DeviceId deviceId) |
void |
modified(org.osgi.service.component.ComponentContext context) |
org.onosproject.net.flow.FlowRuleEvent |
pendingFlowRule(org.onosproject.net.flow.FlowEntry rule) |
void |
purgeFlowRule(org.onosproject.net.DeviceId deviceId) |
void |
purgeFlowRules() |
org.onosproject.net.flow.FlowRuleEvent |
removeFlowRule(org.onosproject.net.flow.FlowEntry rule) |
void |
storeBatch(org.onosproject.net.flow.oldbatch.FlowRuleBatchOperation operation) |
void |
storeFlowRule(org.onosproject.net.flow.FlowRule rule) |
org.onosproject.net.flow.FlowRuleEvent |
updateTableStatistics(org.onosproject.net.DeviceId deviceId,
java.util.List<org.onosproject.net.flow.TableStatisticsEntry> tableStats) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected ReplicaInfoService replicaInfoManager
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService configService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.persistence.PersistenceService persistenceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
protected final org.onosproject.store.service.Serializer serializer
protected final org.onlab.util.KryoNamespace.Builder serializerBuilder
protected org.onosproject.store.service.AsyncConsistentMap<org.onosproject.net.DeviceId,java.lang.Long> mastershipTermLifecycles
@Activate public void activate(org.osgi.service.component.ComponentContext context)
@Deactivate public void deactivate(org.osgi.service.component.ComponentContext context)
@Modified public void modified(org.osgi.service.component.ComponentContext context)
public int getFlowRuleCount()
getFlowRuleCount in interface org.onosproject.net.flow.FlowRuleStorepublic int getFlowRuleCount(org.onosproject.net.DeviceId deviceId)
getFlowRuleCount in interface org.onosproject.net.flow.FlowRuleStorepublic int getFlowRuleCount(org.onosproject.net.DeviceId deviceId,
org.onosproject.net.flow.FlowEntry.FlowEntryState state)
getFlowRuleCount in interface org.onosproject.net.flow.FlowRuleStorepublic org.onosproject.net.flow.FlowEntry getFlowEntry(org.onosproject.net.flow.FlowRule rule)
getFlowEntry in interface org.onosproject.net.flow.FlowRuleStorepublic java.lang.Iterable<org.onosproject.net.flow.FlowEntry> getFlowEntries(org.onosproject.net.DeviceId deviceId)
getFlowEntries in interface org.onosproject.net.flow.FlowRuleStorepublic void storeFlowRule(org.onosproject.net.flow.FlowRule rule)
storeFlowRule in interface org.onosproject.net.flow.FlowRuleStorepublic void storeBatch(org.onosproject.net.flow.oldbatch.FlowRuleBatchOperation operation)
storeBatch in interface org.onosproject.net.flow.FlowRuleStorepublic void deleteFlowRule(org.onosproject.net.flow.FlowRule rule)
deleteFlowRule in interface org.onosproject.net.flow.FlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent pendingFlowRule(org.onosproject.net.flow.FlowEntry rule)
pendingFlowRule in interface org.onosproject.net.flow.FlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent addOrUpdateFlowRule(org.onosproject.net.flow.FlowEntry rule)
addOrUpdateFlowRule in interface org.onosproject.net.flow.FlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent removeFlowRule(org.onosproject.net.flow.FlowEntry rule)
removeFlowRule in interface org.onosproject.net.flow.FlowRuleStorepublic void purgeFlowRule(org.onosproject.net.DeviceId deviceId)
purgeFlowRule in interface org.onosproject.net.flow.FlowRuleStorepublic void purgeFlowRules()
purgeFlowRules in interface org.onosproject.net.flow.FlowRuleStorepublic void batchOperationComplete(org.onosproject.net.flow.oldbatch.FlowRuleBatchEvent event)
batchOperationComplete in interface org.onosproject.net.flow.FlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent updateTableStatistics(org.onosproject.net.DeviceId deviceId,
java.util.List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
updateTableStatistics in interface org.onosproject.net.flow.FlowRuleStorepublic java.lang.Iterable<org.onosproject.net.flow.TableStatisticsEntry> getTableStatistics(org.onosproject.net.DeviceId deviceId)
getTableStatistics in interface org.onosproject.net.flow.FlowRuleStorepublic long getActiveFlowRuleCount(org.onosproject.net.DeviceId deviceId)
getActiveFlowRuleCount in interface org.onosproject.net.flow.FlowRuleStore