Package org.onosproject.net.intent
Class PathIntent
- java.lang.Object
- 
- org.onosproject.net.intent.Intent
- 
- org.onosproject.net.intent.ConnectivityIntent
- 
- org.onosproject.net.intent.PathIntent
 
 
 
- 
 @Beta public class PathIntent extends ConnectivityIntent Abstraction of explicitly path specified connectivity intent.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPathIntent.BuilderBuilder of a host to host intent.static classPathIntent.ProtectionType
 - 
Field Summary- 
Fields inherited from class org.onosproject.net.intent.IntentDEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedPathIntent()Constructor for serializer.protectedPathIntent(ApplicationId appId, Key key, TrafficSelector selector, TrafficTreatment treatment, Path path, List<Constraint> constraints, int priority, PathIntent.ProtectionType type, ResourceGroup resourceGroup)Creates a new point-to-point intent with the supplied ingress/egress ports and using the specified explicit path, which can be classified as PRIMARY or BACKUP.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathIntent.Builderbuilder()Returns a new host to host intent builder.Pathpath()Returns the links which the traffic goes along.StringtoString()PathIntent.ProtectionTypetype()static voidvalidate(List<Link> links)Validates that source element ID and destination element ID of a link are different for the specified all links and that destination element ID of a link and source element ID of the next adjacent source element ID are same for the specified all links.- 
Methods inherited from class org.onosproject.net.intent.ConnectivityIntentconstraints, resources, resources, selector, treatment
 - 
Methods inherited from class org.onosproject.net.intent.IntentappId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
 
- 
 
- 
- 
- 
Constructor Detail- 
PathIntentprotected PathIntent(ApplicationId appId, Key key, TrafficSelector selector, TrafficTreatment treatment, Path path, List<Constraint> constraints, int priority, PathIntent.ProtectionType type, ResourceGroup resourceGroup) Creates a new point-to-point intent with the supplied ingress/egress ports and using the specified explicit path, which can be classified as PRIMARY or BACKUP.- Parameters:
- appId- application identifier
- key- intent key
- selector- traffic selector
- treatment- treatment
- path- traversed links
- constraints- optional list of constraints
- priority- priority to use for the generated flows
- type- PRIMARY or BACKUP
- resourceGroup- resource group for this intent
- Throws:
- NullPointerException-- pathis null
 
 - 
PathIntentprotected PathIntent() Constructor for serializer.
 
- 
 - 
Method Detail- 
builderpublic static PathIntent.Builder builder() Returns a new host to host intent builder.- Returns:
- host to host intent builder
 
 - 
validatepublic static void validate(List<Link> links) Validates that source element ID and destination element ID of a link are different for the specified all links and that destination element ID of a link and source element ID of the next adjacent source element ID are same for the specified all links.- Parameters:
- links- links to be validated
 
 - 
pathpublic Path path() Returns the links which the traffic goes along.- Returns:
- traversed links
 
 - 
typepublic PathIntent.ProtectionType type() 
 
- 
 
-