public interface FlowRuleStore extends Store<FlowRuleBatchEvent,FlowRuleStoreDelegate>
Modifier and Type | Method and Description |
---|---|
FlowRuleEvent |
addOrUpdateFlowRule(FlowEntry rule)
Stores a new flow rule, or updates an existing entry.
|
void |
batchOperationComplete(FlowRuleBatchEvent event)
Invoked on the completion of a storeBatch operation.
|
void |
deleteFlowRule(FlowRule rule)
Marks a flow rule for deletion.
|
long |
getActiveFlowRuleCount(DeviceId deviceId)
Returns number of flow rules in ADDED state for specified device.
|
java.lang.Iterable<FlowEntry> |
getFlowEntries(DeviceId deviceId)
Returns the flow entries associated with a device.
|
FlowEntry |
getFlowEntry(FlowRule rule)
Returns the stored flow.
|
int |
getFlowRuleCount()
Returns the number of flow rule in the store.
|
java.lang.Iterable<TableStatisticsEntry> |
getTableStatistics(DeviceId deviceId)
Returns the flow table statistics associated with a device.
|
FlowRuleEvent |
pendingFlowRule(FlowEntry rule)
Marks a flow rule as PENDING_ADD during retry.
|
default void |
purgeFlowRule(DeviceId deviceId)
Removes all flow entries of given device from store.
|
void |
purgeFlowRules()
Removes all flow entries from store.
|
FlowRuleEvent |
removeFlowRule(FlowEntry rule) |
void |
storeBatch(FlowRuleBatchOperation batchOperation)
Stores a batch of flow rules.
|
void |
storeFlowRule(FlowRule rule)
Deprecated.
in Cardinal Release
|
FlowRuleEvent |
updateTableStatistics(DeviceId deviceId,
java.util.List<TableStatisticsEntry> tableStats)
Updates the flow table statistics of the specified device using
the given statistics.
|
hasDelegate, setDelegate, unsetDelegate
int getFlowRuleCount()
FlowEntry getFlowEntry(FlowRule rule)
rule
- the rule to look forjava.lang.Iterable<FlowEntry> getFlowEntries(DeviceId deviceId)
deviceId
- the device ID@Deprecated void storeFlowRule(FlowRule rule)
rule
- the flow rule to addvoid storeBatch(FlowRuleBatchOperation batchOperation)
batchOperation
- batch of flow rules.
A batch can contain flow rules for a single device only.void batchOperationComplete(FlowRuleBatchEvent event)
event
- flow rule batch eventvoid deleteFlowRule(FlowRule rule)
rule
- the flow rule to deleteFlowRuleEvent addOrUpdateFlowRule(FlowEntry rule)
rule
- the flow rule to add or updateFlowRuleEvent removeFlowRule(FlowEntry rule)
rule
- the flow entry to removeFlowRuleEvent pendingFlowRule(FlowEntry rule)
rule
- the flow rule that is retryingdefault void purgeFlowRule(DeviceId deviceId)
deviceId
- device idvoid purgeFlowRules()
FlowRuleEvent updateTableStatistics(DeviceId deviceId, java.util.List<TableStatisticsEntry> tableStats)
deviceId
- device identifiertableStats
- list of table statisticsjava.lang.Iterable<TableStatisticsEntry> getTableStatistics(DeviceId deviceId)
deviceId
- the device IDlong getActiveFlowRuleCount(DeviceId deviceId)
deviceId
- the device ID