@Service
public class FlowRuleManager
extends org.onosproject.net.provider.AbstractListenerProviderRegistry<org.onosproject.net.flow.FlowRuleEvent,org.onosproject.net.flow.FlowRuleListener,org.onosproject.net.flow.FlowRuleProvider,org.onosproject.net.flow.FlowRuleProviderService>
implements org.onosproject.net.flow.FlowRuleService, org.onosproject.net.flow.FlowRuleProviderRegistry
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cfg.ComponentConfigService |
cfgService |
protected org.onosproject.core.CoreService |
coreService |
protected ExecutorService |
deviceInstallers |
protected org.onosproject.net.device.DeviceService |
deviceService |
static String |
FLOW_RULE_NULL |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected ExecutorService |
operationsService |
protected org.onosproject.net.flow.FlowRuleStore |
store |
| Constructor and Description |
|---|
FlowRuleManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.service.component.ComponentContext context) |
void |
apply(org.onosproject.net.flow.FlowRuleOperations ops) |
void |
applyFlowRules(org.onosproject.net.flow.FlowRule... flowRules) |
protected org.onosproject.net.flow.FlowRuleProviderService |
createProviderService(org.onosproject.net.flow.FlowRuleProvider provider) |
void |
deactivate() |
protected org.onosproject.net.flow.FlowRuleProvider |
defaultProvider() |
Iterable<org.onosproject.net.flow.FlowEntry> |
getFlowEntries(org.onosproject.net.DeviceId deviceId) |
Iterable<org.onosproject.net.flow.FlowEntry> |
getFlowEntriesById(org.onosproject.core.ApplicationId id) |
int |
getFlowRuleCount() |
Iterable<org.onosproject.net.flow.FlowRule> |
getFlowRulesByGroupId(org.onosproject.core.ApplicationId appId,
short groupId) |
Iterable<org.onosproject.net.flow.FlowRule> |
getFlowRulesById(org.onosproject.core.ApplicationId id)
Deprecated.
|
Iterable<org.onosproject.net.flow.TableStatisticsEntry> |
getFlowTableStatistics(org.onosproject.net.DeviceId deviceId) |
void |
modified(org.osgi.service.component.ComponentContext context) |
void |
purgeFlowRules(org.onosproject.net.DeviceId deviceId) |
void |
removeFlowRules(org.onosproject.net.flow.FlowRule... flowRules) |
void |
removeFlowRulesById(org.onosproject.core.ApplicationId id) |
addListener, bindEventDispatcher, post, removeListener, unbindEventDispatchergetProvider, getProvider, getProvider, getProviders, register, unregisterpublic static final String FLOW_RULE_NULL
protected ExecutorService deviceInstallers
protected ExecutorService operationsService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.flow.FlowRuleStore store
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cfg.ComponentConfigService cfgService
@Activate public void activate(org.osgi.service.component.ComponentContext context)
@Deactivate public void deactivate()
@Modified public void modified(org.osgi.service.component.ComponentContext context)
protected org.onosproject.net.flow.FlowRuleProvider defaultProvider()
defaultProvider in class org.onosproject.net.provider.AbstractProviderRegistry<org.onosproject.net.flow.FlowRuleProvider,org.onosproject.net.flow.FlowRuleProviderService>public int getFlowRuleCount()
getFlowRuleCount in interface org.onosproject.net.flow.FlowRuleServicepublic Iterable<org.onosproject.net.flow.FlowEntry> getFlowEntries(org.onosproject.net.DeviceId deviceId)
getFlowEntries in interface org.onosproject.net.flow.FlowRuleServicepublic void applyFlowRules(org.onosproject.net.flow.FlowRule... flowRules)
applyFlowRules in interface org.onosproject.net.flow.FlowRuleServicepublic void purgeFlowRules(org.onosproject.net.DeviceId deviceId)
purgeFlowRules in interface org.onosproject.net.flow.FlowRuleServicepublic void removeFlowRules(org.onosproject.net.flow.FlowRule... flowRules)
removeFlowRules in interface org.onosproject.net.flow.FlowRuleServicepublic void removeFlowRulesById(org.onosproject.core.ApplicationId id)
removeFlowRulesById in interface org.onosproject.net.flow.FlowRuleService@Deprecated public Iterable<org.onosproject.net.flow.FlowRule> getFlowRulesById(org.onosproject.core.ApplicationId id)
getFlowRulesById in interface org.onosproject.net.flow.FlowRuleServicepublic Iterable<org.onosproject.net.flow.FlowEntry> getFlowEntriesById(org.onosproject.core.ApplicationId id)
getFlowEntriesById in interface org.onosproject.net.flow.FlowRuleServicepublic Iterable<org.onosproject.net.flow.FlowRule> getFlowRulesByGroupId(org.onosproject.core.ApplicationId appId, short groupId)
getFlowRulesByGroupId in interface org.onosproject.net.flow.FlowRuleServicepublic void apply(org.onosproject.net.flow.FlowRuleOperations ops)
apply in interface org.onosproject.net.flow.FlowRuleServiceprotected org.onosproject.net.flow.FlowRuleProviderService createProviderService(org.onosproject.net.flow.FlowRuleProvider provider)
createProviderService in class org.onosproject.net.provider.AbstractProviderRegistry<org.onosproject.net.flow.FlowRuleProvider,org.onosproject.net.flow.FlowRuleProviderService>public Iterable<org.onosproject.net.flow.TableStatisticsEntry> getFlowTableStatistics(org.onosproject.net.DeviceId deviceId)
getFlowTableStatistics in interface org.onosproject.net.flow.FlowRuleService