public interface FlowRuleService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(FlowRuleListener listener)
Adds the specified flow rule listener.
|
Future<CompletedBatchOperation> |
applyBatch(FlowRuleBatchOperation batch)
Applies a batch operation of FlowRules.
|
void |
applyFlowRules(FlowRule... flowRules)
Applies the specified flow rules onto their respective devices.
|
Iterable<FlowEntry> |
getFlowEntries(DeviceId deviceId)
Returns the collection of flow entries applied on the specified device.
|
int |
getFlowRuleCount()
Returns the number of flow rules in the system.
|
Iterable<FlowRule> |
getFlowRulesByGroupId(ApplicationId appId,
short groupId)
Returns a list of rules filterd by application and group id.
|
Iterable<FlowRule> |
getFlowRulesById(ApplicationId id)
Returns a list of rules with this application id.
|
void |
removeFlowRules(FlowRule... flowRules)
Removes the specified flow rules from their respective devices.
|
void |
removeFlowRulesById(ApplicationId appId)
Removes all rules by id.
|
void |
removeListener(FlowRuleListener listener)
Removes the specified flow rule listener.
|
int getFlowRuleCount()
Iterable<FlowEntry> getFlowEntries(DeviceId deviceId)
deviceId - device identifiervoid applyFlowRules(FlowRule... flowRules)
flowRules - one or more flow rulesvoid removeFlowRules(FlowRule... flowRules)
flowRules - one or more flow rules
throws SomeKindOfException that indicates which ones were removed and
which ones failedvoid removeFlowRulesById(ApplicationId appId)
appId - id to removeIterable<FlowRule> getFlowRulesById(ApplicationId id)
id - the id to look upIterable<FlowRule> getFlowRulesByGroupId(ApplicationId appId, short groupId)
appId - the application id to lookupgroupId - the groupid to lookupFuture<CompletedBatchOperation> applyBatch(FlowRuleBatchOperation batch)
batch - batch operation to applyvoid addListener(FlowRuleListener listener)
listener - flow rule listenervoid removeListener(FlowRuleListener listener)
listener - flow rule listenerCopyright © 2015. All rights reserved.