@Beta public abstract class ConnectivityIntent extends Intent
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ConnectivityIntent.Builder
Abstract 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,
                  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. 
 | 
| Modifier and Type | Method and 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. 
 | 
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, unbindIdGeneratorprotected ConnectivityIntent(ApplicationId appId, Key key, Collection<NetworkResource> resources, TrafficSelector selector, TrafficTreatment treatment, 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 intentNullPointerException - if the selector or treatment is nullprotected ConnectivityIntent()
public TrafficSelector selector()
public TrafficTreatment treatment()
public List<Constraint> constraints()
protected static Collection<NetworkResource> resources(Collection<NetworkResource> resources, Collection<Link> links)
resources - base resourceslinks - collection of linksprotected static Collection<NetworkResource> resources(Collection<Link> links)
links - collection of links