public class VirtualNetworkFlowRuleManager extends org.onosproject.event.AbstractListenerManager<org.onosproject.net.flow.FlowRuleEvent,org.onosproject.net.flow.FlowRuleListener> implements org.onosproject.net.flow.FlowRuleService, VnetService
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
deviceInstallers |
static String |
FLOW_RULE_NULL |
protected ExecutorService |
operationsService |
| Constructor and Description |
|---|
VirtualNetworkFlowRuleManager(VirtualNetworkAdminService virtualNetworkManager,
VirtualNetwork network,
org.onlab.osgi.ServiceDirectory serviceDirectory)
Creates a new VirtualNetworkFlowRuleService object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.onosproject.net.flow.FlowRuleOperations ops) |
void |
applyFlowRules(org.onosproject.net.flow.FlowRule... flowRules) |
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) |
Iterable<org.onosproject.net.flow.TableStatisticsEntry> |
getFlowTableStatistics(org.onosproject.net.DeviceId deviceId) |
VirtualNetwork |
network() |
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, unbindEventDispatcherpublic static final String FLOW_RULE_NULL
protected ExecutorService deviceInstallers
protected ExecutorService operationsService
public VirtualNetworkFlowRuleManager(VirtualNetworkAdminService virtualNetworkManager, VirtualNetwork network, org.onlab.osgi.ServiceDirectory serviceDirectory)
virtualNetworkManager - virtual network manager servicenetwork - virtual networkserviceDirectory - service directorypublic 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.FlowRuleServicepublic 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.FlowRuleServicepublic Iterable<org.onosproject.net.flow.TableStatisticsEntry> getFlowTableStatistics(org.onosproject.net.DeviceId deviceId)
getFlowTableStatistics in interface org.onosproject.net.flow.FlowRuleServicepublic VirtualNetwork network()
network in interface VnetService