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.
|
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.
|
FlowRuleEvent |
removeFlowRule(FlowEntry rule) |
Future<CompletedBatchOperation> |
storeBatch(FlowRuleBatchOperation batchOperation)
Stores a batch of flow rules.
|
void |
storeFlowRule(FlowRule rule)
// TODO: Better description of method behavior.
|
hasDelegate, setDelegate, unsetDelegateint getFlowRuleCount()
FlowEntry getFlowEntry(FlowRule rule)
rule - the rule to look forIterable<FlowEntry> getFlowEntries(DeviceId deviceId)
deviceId - the device IDvoid storeFlowRule(FlowRule rule)
rule - the flow rule to addFuture<CompletedBatchOperation> 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 removeCopyright © 2015. All rights reserved.