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)
Deprecated. 
 
since 2.1 
 | 
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 rules in the store. 
 | 
default int | 
getFlowRuleCount(DeviceId deviceId)
Returns the number of flow rules for the given device in the store. 
 | 
default int | 
getFlowRuleCount(DeviceId deviceId,
                FlowEntry.FlowEntryState state)
Returns the number of flow rules in the given state for the given device. 
 | 
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,
                     List<TableStatisticsEntry> tableStats)
Updates the flow table statistics of the specified device using
 the given statistics. 
 | 
hasDelegate, setDelegate, unsetDelegateint getFlowRuleCount()
default int getFlowRuleCount(DeviceId deviceId)
deviceId - device identifierdefault int getFlowRuleCount(DeviceId deviceId, FlowEntry.FlowEntryState state)
deviceId - the device identifierstate - the state for which to count flow rulesFlowEntry getFlowEntry(FlowRule rule)
rule - the rule to look forIterable<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, List<TableStatisticsEntry> tableStats)
deviceId - device identifiertableStats - list of table statisticsIterable<TableStatisticsEntry> getTableStatistics(DeviceId deviceId)
deviceId - the device ID@Deprecated long getActiveFlowRuleCount(DeviceId deviceId)
deviceId - the device ID