public interface VirtualNetworkFlowRuleStore
extends org.onosproject.store.Store<org.onosproject.net.flow.FlowRuleBatchEvent,org.onosproject.net.flow.FlowRuleStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.flow.FlowRuleEvent |
addOrUpdateFlowRule(NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule)
Stores a new flow rule, or updates an existing entry.
|
void |
batchOperationComplete(NetworkId networkId,
org.onosproject.net.flow.FlowRuleBatchEvent event)
Invoked on the completion of a storeBatch operation.
|
void |
deleteFlowRule(NetworkId networkId,
org.onosproject.net.flow.FlowRule rule)
Marks a flow rule for deletion.
|
Iterable<org.onosproject.net.flow.FlowEntry> |
getFlowEntries(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns the flow entries associated with a device.
|
org.onosproject.net.flow.FlowEntry |
getFlowEntry(NetworkId networkId,
org.onosproject.net.flow.FlowRule rule)
Returns the stored flow.
|
int |
getFlowRuleCount(NetworkId networkId)
Returns the number of flow rule in the store.
|
Iterable<org.onosproject.net.flow.TableStatisticsEntry> |
getTableStatistics(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Returns the flow table statistics associated with a device.
|
org.onosproject.net.flow.FlowRuleEvent |
pendingFlowRule(NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule)
Marks a flow rule as PENDING_ADD during retry.
|
default void |
purgeFlowRule(NetworkId networkId,
org.onosproject.net.DeviceId deviceId)
Removes all flow entries of given device from store.
|
void |
purgeFlowRules(NetworkId networkId)
Removes all flow entries from store.
|
org.onosproject.net.flow.FlowRuleEvent |
removeFlowRule(NetworkId networkId,
org.onosproject.net.flow.FlowEntry rule)
Removes an existing flow entry.
|
void |
storeBatch(NetworkId networkId,
org.onosproject.net.flow.FlowRuleBatchOperation batchOperation)
Stores a batch of flow rules.
|
void |
storeFlowRule(NetworkId networkId,
org.onosproject.net.flow.FlowRule rule)
Deprecated.
in Cardinal Release
|
org.onosproject.net.flow.FlowRuleEvent |
updateTableStatistics(NetworkId networkId,
org.onosproject.net.DeviceId deviceId,
List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
Updates the flow table statistics of the specified device using
the given statistics.
|
int getFlowRuleCount(NetworkId networkId)
networkId - virtual network identifierorg.onosproject.net.flow.FlowEntry getFlowEntry(NetworkId networkId, org.onosproject.net.flow.FlowRule rule)
networkId - virtual network identifierrule - the rule to look forIterable<org.onosproject.net.flow.FlowEntry> getFlowEntries(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - virtual network identifierdeviceId - the device ID@Deprecated void storeFlowRule(NetworkId networkId, org.onosproject.net.flow.FlowRule rule)
networkId - virtual network identifierrule - the flow rule to addvoid storeBatch(NetworkId networkId, org.onosproject.net.flow.FlowRuleBatchOperation batchOperation)
networkId - virtual network identifierbatchOperation - batch of flow rules.
A batch can contain flow rules for a single device only.void batchOperationComplete(NetworkId networkId, org.onosproject.net.flow.FlowRuleBatchEvent event)
networkId - virtual network identifierevent - flow rule batch eventvoid deleteFlowRule(NetworkId networkId, org.onosproject.net.flow.FlowRule rule)
networkId - virtual network identifierrule - the flow rule to deleteorg.onosproject.net.flow.FlowRuleEvent addOrUpdateFlowRule(NetworkId networkId, org.onosproject.net.flow.FlowEntry rule)
networkId - virtual network identifierrule - the flow rule to add or updateorg.onosproject.net.flow.FlowRuleEvent removeFlowRule(NetworkId networkId, org.onosproject.net.flow.FlowEntry rule)
rule - the flow entry to removenetworkId - virtual network identifierorg.onosproject.net.flow.FlowRuleEvent pendingFlowRule(NetworkId networkId, org.onosproject.net.flow.FlowEntry rule)
networkId - virtual network identifierrule - the flow rule that is retryingdefault void purgeFlowRule(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - virtual network identifierdeviceId - device idvoid purgeFlowRules(NetworkId networkId)
networkId - virtual network identifierorg.onosproject.net.flow.FlowRuleEvent updateTableStatistics(NetworkId networkId, org.onosproject.net.DeviceId deviceId, List<org.onosproject.net.flow.TableStatisticsEntry> tableStats)
networkId - virtual network identifierdeviceId - device identifiertableStats - list of table statisticsIterable<org.onosproject.net.flow.TableStatisticsEntry> getTableStatistics(NetworkId networkId, org.onosproject.net.DeviceId deviceId)
networkId - virtual network identifierdeviceId - the device ID