@Beta public class PathIntent extends ConnectivityIntent
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
PathIntent.Builder
Builder of a host to host intent. 
 | 
static class  | 
PathIntent.ProtectionType  | 
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY| Modifier | Constructor and Description | 
|---|---|
protected  | 
PathIntent()
Constructor for serializer. 
 | 
protected  | 
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. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static PathIntent.Builder | 
builder()
Returns a new host to host intent builder. 
 | 
Path | 
path()
Returns the links which the traffic goes along. 
 | 
String | 
toString()  | 
PathIntent.ProtectionType | 
type()  | 
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. 
 | 
constraints, resources, resources, selector, treatmentappId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGeneratorprotected PathIntent(ApplicationId appId, Key key, TrafficSelector selector, TrafficTreatment treatment, Path path, List<Constraint> constraints, int priority, PathIntent.ProtectionType type, ResourceGroup resourceGroup)
appId - application identifierkey - intent keyselector - traffic selectortreatment - treatmentpath - traversed linksconstraints - optional list of constraintspriority - priority to use for the generated flowstype - PRIMARY or BACKUPresourceGroup - resource group for this intentNullPointerException - path is nullprotected PathIntent()
public static PathIntent.Builder builder()
public static void validate(List<Link> links)
links - links to be validatedpublic Path path()
public PathIntent.ProtectionType type()