@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,
java.util.List<Constraint> constraints,
int priority)
Deprecated.
1.9.1
|
protected |
PathIntent(ApplicationId appId,
Key key,
TrafficSelector selector,
TrafficTreatment treatment,
Path path,
java.util.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.
|
java.lang.String |
toString() |
PathIntent.ProtectionType |
type() |
static void |
validate(java.util.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, treatment
appId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
@Deprecated protected PathIntent(ApplicationId appId, Key key, TrafficSelector selector, TrafficTreatment treatment, Path path, java.util.List<Constraint> constraints, int priority)
appId
- application identifierkey
- intent keyselector
- traffic selectortreatment
- treatmentpath
- traversed linksconstraints
- optional list of constraintspriority
- priority to use for the generated flowsjava.lang.NullPointerException
- path
is nullprotected PathIntent(ApplicationId appId, Key key, TrafficSelector selector, TrafficTreatment treatment, Path path, java.util.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 intentjava.lang.NullPointerException
- path
is nullprotected PathIntent()
public static PathIntent.Builder builder()
public static void validate(java.util.List<Link> links)
links
- links to be validatedpublic Path path()
public PathIntent.ProtectionType type()
public java.lang.String toString()
toString
in class java.lang.Object