Package org.onosproject.net.intent
Class ConnectivityIntent
- java.lang.Object
- 
- org.onosproject.net.intent.Intent
- 
- org.onosproject.net.intent.ConnectivityIntent
 
 
- 
- Direct Known Subclasses:
- HostToHostIntent,- LinkCollectionIntent,- MultiPointToSinglePointIntent,- PathIntent,- PointToPointIntent,- ProtectedTransportIntent,- SinglePointToMultiPointIntent,- TwoWayP2PIntent
 
 @Beta public abstract class ConnectivityIntent extends Intent Abstraction of connectivity intent for traffic matching some criteria.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConnectivityIntent.BuilderAbstract builder for connectivity intents.
 - 
Field Summary- 
Fields inherited from class org.onosproject.net.intent.IntentDEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedConnectivityIntent()Constructor for serializer.protectedConnectivityIntent(ApplicationId appId, Key key, Collection<NetworkResource> resources, TrafficSelector selector, TrafficTreatment treatment, List<Constraint> constraints, int priority, ResourceGroup resourceGroup)Creates a connectivity intent that matches on the specified selector and applies the specified treatment.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Constraint>constraints()Returns the set of connectivity constraints.protected static Collection<NetworkResource>resources(Collection<Link> links)Produces a collection of network resources from the given links.protected static Collection<NetworkResource>resources(Collection<NetworkResource> resources, Collection<Link> links)Produces a collection of network resources from the given links.TrafficSelectorselector()Returns the match specifying the type of traffic.TrafficTreatmenttreatment()Returns the action applied to the traffic.- 
Methods inherited from class org.onosproject.net.intent.IntentappId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
 
- 
 
- 
- 
- 
Constructor Detail- 
ConnectivityIntentprotected ConnectivityIntent(ApplicationId appId, Key key, Collection<NetworkResource> resources, TrafficSelector selector, TrafficTreatment treatment, List<Constraint> constraints, int priority, ResourceGroup resourceGroup) Creates a connectivity intent that matches on the specified selector and applies the specified treatment.Path will be optimized based on the first constraint if one is given. - Parameters:
- appId- application identifier
- key- explicit key to use for intent
- resources- required network resources (optional)
- selector- traffic selector
- treatment- treatment
- constraints- optional prioritized list of constraints
- priority- priority to use for flows generated by this intent
- resourceGroup- resource group for this intent
- Throws:
- NullPointerException- if the selector or treatment is null
 
 - 
ConnectivityIntentprotected ConnectivityIntent() Constructor for serializer.
 
- 
 - 
Method Detail- 
selectorpublic TrafficSelector selector() Returns the match specifying the type of traffic.- Returns:
- traffic match
 
 - 
treatmentpublic TrafficTreatment treatment() Returns the action applied to the traffic.- Returns:
- applied action
 
 - 
constraintspublic List<Constraint> constraints() Returns the set of connectivity constraints.- Returns:
- list of intent constraints
 
 - 
resourcesprotected static Collection<NetworkResource> resources(Collection<NetworkResource> resources, Collection<Link> links) Produces a collection of network resources from the given links.- Parameters:
- resources- base resources
- links- collection of links
- Returns:
- collection of resources
 
 - 
resourcesprotected static Collection<NetworkResource> resources(Collection<Link> links) Produces a collection of network resources from the given links.- Parameters:
- links- collection of links
- Returns:
- collection of link resources
 
 
- 
 
-