Package org.onosproject.net.intent
Class FlowRuleIntent
- java.lang.Object
- 
- org.onosproject.net.intent.Intent
- 
- org.onosproject.net.intent.FlowRuleIntent
 
 
- 
 @Beta public class FlowRuleIntent extends Intent An intent that enables to tell flow level operation. This instance holds a collection of flow rules that may be executed in parallel.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.onosproject.net.intent.IntentIntent.Builder
 
- 
 - 
Field Summary- 
Fields inherited from class org.onosproject.net.intent.IntentDEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedFlowRuleIntent()Constructor for serializer.FlowRuleIntent(ApplicationId appId, Key key, java.util.Collection<FlowRule> flowRules, java.util.Collection<NetworkResource> resources, PathIntent.ProtectionType primary, ResourceGroup resourceGroup)Creates a flow rule intent with the specified key, flow rules to be set, and required network resources.FlowRuleIntent(FlowRuleIntent intent, PathIntent.ProtectionType type)Creates a flow rule intent with all the same characteristics as the given one except for the flow rule type.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<FlowRule>flowRules()Returns a collection of flow rules to be set.booleanisInstallable()Indicates whether or not the intent is installable.java.lang.StringtoString()PathIntent.ProtectionTypetype()- 
Methods inherited from class org.onosproject.net.intent.IntentappId, bindIdGenerator, equals, hashCode, id, key, priority, resourceGroup, resources, unbindIdGenerator
 
- 
 
- 
- 
- 
Constructor Detail- 
FlowRuleIntentpublic FlowRuleIntent(ApplicationId appId, Key key, java.util.Collection<FlowRule> flowRules, java.util.Collection<NetworkResource> resources, PathIntent.ProtectionType primary, ResourceGroup resourceGroup) Creates a flow rule intent with the specified key, flow rules to be set, and required network resources.- Parameters:
- appId- application id
- key- key
- flowRules- flow rules
- resources- network resources
- primary- primary protection type
- resourceGroup- resource group for this intent
 
 - 
FlowRuleIntentpublic FlowRuleIntent(FlowRuleIntent intent, PathIntent.ProtectionType type) Creates a flow rule intent with all the same characteristics as the given one except for the flow rule type.- Parameters:
- intent- original flow rule intent
- type- new protection type
 
 - 
FlowRuleIntentprotected FlowRuleIntent() Constructor for serializer.
 
- 
 - 
Method Detail- 
flowRulespublic java.util.Collection<FlowRule> flowRules() Returns a collection of flow rules to be set.- Returns:
- a collection of flow rules
 
 - 
isInstallablepublic boolean isInstallable() Description copied from class:IntentIndicates whether or not the intent is installable.- Overrides:
- isInstallablein class- Intent
- Returns:
- true if installable
 
 - 
typepublic PathIntent.ProtectionType type() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-