@Beta public abstract class ConnectivityIntent extends Intent
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ConnectivityIntent.BuilderAbstract builder for connectivity intents. | 
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY| Modifier | Constructor and Description | 
|---|---|
| protected  | ConnectivityIntent()Constructor for serializer. | 
| protected  | ConnectivityIntent(ApplicationId appId,
                  Key key,
                  java.util.Collection<NetworkResource> resources,
                  TrafficSelector selector,
                  TrafficTreatment treatment,
                  java.util.List<Constraint> constraints,
                  int priority)Deprecated. 
 1.9.1 | 
| protected  | ConnectivityIntent(ApplicationId appId,
                  Key key,
                  java.util.Collection<NetworkResource> resources,
                  TrafficSelector selector,
                  TrafficTreatment treatment,
                  java.util.List<Constraint> constraints,
                  int priority,
                  ResourceGroup resourceGroup)Creates a connectivity intent that matches on the specified selector
 and applies the specified treatment. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.List<Constraint> | constraints()Returns the set of connectivity constraints. | 
| protected static java.util.Collection<NetworkResource> | resources(java.util.Collection<Link> links)Produces a collection of network resources from the given links. | 
| protected static java.util.Collection<NetworkResource> | resources(java.util.Collection<NetworkResource> resources,
         java.util.Collection<Link> links)Produces a collection of network resources from the given links. | 
| TrafficSelector | selector()Returns the match specifying the type of traffic. | 
| TrafficTreatment | treatment()Returns the action applied to the traffic. | 
appId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator@Deprecated protected ConnectivityIntent(ApplicationId appId, Key key, java.util.Collection<NetworkResource> resources, TrafficSelector selector, TrafficTreatment treatment, java.util.List<Constraint> constraints, int priority)
Path will be optimized based on the first constraint if one is given.
appId - application identifierkey - explicit key to use for intentresources - required network resources (optional)selector - traffic selectortreatment - treatmentconstraints - optional prioritized list of constraintspriority - priority to use for flows generated by this intentjava.lang.NullPointerException - if the selector or treatment is nullprotected ConnectivityIntent(ApplicationId appId, Key key, java.util.Collection<NetworkResource> resources, TrafficSelector selector, TrafficTreatment treatment, java.util.List<Constraint> constraints, int priority, ResourceGroup resourceGroup)
Path will be optimized based on the first constraint if one is given.
appId - application identifierkey - explicit key to use for intentresources - required network resources (optional)selector - traffic selectortreatment - treatmentconstraints - optional prioritized list of constraintspriority - priority to use for flows generated by this intentresourceGroup - resource group for this intentjava.lang.NullPointerException - if the selector or treatment is nullprotected ConnectivityIntent()
public TrafficSelector selector()
public TrafficTreatment treatment()
public java.util.List<Constraint> constraints()
protected static java.util.Collection<NetworkResource> resources(java.util.Collection<NetworkResource> resources, java.util.Collection<Link> links)
resources - base resourceslinks - collection of linksprotected static java.util.Collection<NetworkResource> resources(java.util.Collection<Link> links)
links - collection of links