@Service public class DistributedVirtualFlowRuleStore extends AbstractVirtualStore<org.onosproject.net.flow.oldbatch.FlowRuleBatchEvent,org.onosproject.net.flow.FlowRuleStoreDelegate> implements org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStore
| Modifier and Type | Class and Description |
|---|---|
class |
DistributedVirtualFlowRuleStore.MastershipBasedTimestamp |
| 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.store.service.Serializer |
serializer |
protected org.onlab.util.KryoNamespace.Builder |
serializerBuilder |
protected org.onosproject.store.service.StorageService |
storageService |
protected org.onosproject.incubator.net.virtual.VirtualNetworkService |
vnaService |
delegateMap| Constructor and Description |
|---|
DistributedVirtualFlowRuleStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
org.onosproject.net.flow.FlowRuleEvent |
addOrUpdateFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule) |
void |
batchOperationComplete(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.oldbatch.FlowRuleBatchEvent event) |
void |
deactivate(org.osgi.service.component.ComponentContext context) |
void |
deleteFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowRule rule) |
Iterable<org.onosproject.net.flow.FlowEntry> |
getFlowEntries(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.DeviceId deviceId) |
org.onosproject.net.flow.FlowEntry |
getFlowEntry(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowRule rule) |
int |
getFlowRuleCount(org.onosproject.incubator.net.virtual.NetworkId networkId) |
Iterable<org.onosproject.net.flow.TableStatisticsEntry> |
getTableStatistics(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.DeviceId deviceId) |
void |
modified(org.osgi.service.component.ComponentContext context) |
org.onosproject.net.flow.FlowRuleEvent |
pendingFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule) |
void |
purgeFlowRules(org.onosproject.incubator.net.virtual.NetworkId networkId) |
org.onosproject.net.flow.FlowRuleEvent |
removeFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule) |
void |
storeBatch(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.oldbatch.FlowRuleBatchOperation operation) |
org.onosproject.net.flow.FlowRuleEvent |
updateTableStatistics(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
List<org.onosproject.net.flow.TableStatisticsEntry> tableStats) |
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService configService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.incubator.net.virtual.VirtualNetworkService vnaService
protected final org.onosproject.store.service.Serializer serializer
protected final org.onlab.util.KryoNamespace.Builder serializerBuilder
@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(org.onosproject.incubator.net.virtual.NetworkId networkId)
getFlowRuleCount in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic org.onosproject.net.flow.FlowEntry getFlowEntry(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowRule rule)
getFlowEntry in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic Iterable<org.onosproject.net.flow.FlowEntry> getFlowEntries(org.onosproject.incubator.net.virtual.NetworkId networkId, org.onosproject.net.DeviceId deviceId)
getFlowEntries in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic void storeBatch(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.oldbatch.FlowRuleBatchOperation operation)
storeBatch in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic void batchOperationComplete(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.oldbatch.FlowRuleBatchEvent event)
batchOperationComplete in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic void deleteFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowRule rule)
deleteFlowRule in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent addOrUpdateFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule)
addOrUpdateFlowRule in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent removeFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule)
removeFlowRule in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent pendingFlowRule(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule)
pendingFlowRule in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic void purgeFlowRules(org.onosproject.incubator.net.virtual.NetworkId networkId)
purgeFlowRules in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic org.onosproject.net.flow.FlowRuleEvent updateTableStatistics(org.onosproject.incubator.net.virtual.NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
updateTableStatistics in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStorepublic Iterable<org.onosproject.net.flow.TableStatisticsEntry> getTableStatistics(org.onosproject.incubator.net.virtual.NetworkId networkId, org.onosproject.net.DeviceId deviceId)
getTableStatistics in interface org.onosproject.incubator.net.virtual.VirtualNetworkFlowRuleStore