public class VirtualNetworkFlowRuleManager extends AbstractVirtualListenerManager<org.onosproject.net.flow.FlowRuleEvent,org.onosproject.net.flow.FlowRuleListener> implements org.onosproject.net.flow.FlowRuleService
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ExecutorService |
deviceInstallers |
static java.lang.String |
FLOW_RULE_NULL |
protected java.util.concurrent.ExecutorService |
operationsService |
eventDispatcher, manager, networkId, serviceDirectory| Constructor and Description |
|---|
VirtualNetworkFlowRuleManager(VirtualNetworkService virtualNetworkManager,
NetworkId networkId)
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) |
java.lang.Iterable<org.onosproject.net.flow.FlowEntry> |
getFlowEntries(org.onosproject.net.DeviceId deviceId) |
java.lang.Iterable<org.onosproject.net.flow.FlowEntry> |
getFlowEntriesById(org.onosproject.core.ApplicationId id) |
int |
getFlowRuleCount() |
java.lang.Iterable<org.onosproject.net.flow.FlowRule> |
getFlowRulesByGroupId(org.onosproject.core.ApplicationId appId,
short groupId) |
java.lang.Iterable<org.onosproject.net.flow.FlowRule> |
getFlowRulesById(org.onosproject.core.ApplicationId id) |
java.lang.Iterable<org.onosproject.net.flow.TableStatisticsEntry> |
getFlowTableStatistics(org.onosproject.net.DeviceId deviceId) |
void |
purgeFlowRules(org.onosproject.net.DeviceId deviceId) |
void |
removeFlowRules(org.onosproject.net.flow.FlowRule... flowRules) |
void |
removeFlowRulesById(org.onosproject.core.ApplicationId id) |
addListener, networkId, post, removeListenerpublic static final java.lang.String FLOW_RULE_NULL
protected java.util.concurrent.ExecutorService deviceInstallers
protected java.util.concurrent.ExecutorService operationsService
public VirtualNetworkFlowRuleManager(VirtualNetworkService virtualNetworkManager, NetworkId networkId)
virtualNetworkManager - virtual network manager servicenetworkId - a virtual network identifierpublic int getFlowRuleCount()
getFlowRuleCount in interface org.onosproject.net.flow.FlowRuleServicepublic java.lang.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 java.lang.Iterable<org.onosproject.net.flow.FlowRule> getFlowRulesById(org.onosproject.core.ApplicationId id)
getFlowRulesById in interface org.onosproject.net.flow.FlowRuleServicepublic java.lang.Iterable<org.onosproject.net.flow.FlowEntry> getFlowEntriesById(org.onosproject.core.ApplicationId id)
getFlowEntriesById in interface org.onosproject.net.flow.FlowRuleServicepublic java.lang.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 java.lang.Iterable<org.onosproject.net.flow.TableStatisticsEntry> getFlowTableStatistics(org.onosproject.net.DeviceId deviceId)
getFlowTableStatistics in interface org.onosproject.net.flow.FlowRuleService