public abstract class ConnectivityIntent extends Intent
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectivityIntent()
Constructor for serializer.
|
protected |
ConnectivityIntent(ApplicationId appId,
Collection<NetworkResource> resources,
TrafficSelector selector,
TrafficTreatment treatment)
Creates a connectivity intent that matches on the specified selector
and applies the specified treatment.
|
protected |
ConnectivityIntent(ApplicationId appId,
Collection<NetworkResource> resources,
TrafficSelector selector,
TrafficTreatment treatment,
List<Constraint> constraints)
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.
|
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, resources, unbindIdGeneratorprotected ConnectivityIntent(ApplicationId appId, Collection<NetworkResource> resources, TrafficSelector selector, TrafficTreatment treatment)
Path will be chosen without any constraints.
appId - application identifierresources - required network resources (optional)selector - traffic selectortreatment - treatmentNullPointerException - if the selector or treatement is nullprotected ConnectivityIntent(ApplicationId appId, Collection<NetworkResource> resources, TrafficSelector selector, TrafficTreatment treatment, List<Constraint> constraints)
Path will be optimized based on the first constraint if one is given.
appId - application identifierresources - required network resources (optional)selector - traffic selectortreatment - treatmentconstraints - optional prioritized list of constraintsNullPointerException - if the selector or treatement is nullprotected ConnectivityIntent()
public TrafficSelector selector()
public TrafficTreatment treatment()
public List<Constraint> constraints()
protected static Collection<NetworkResource> resources(Collection<Link> links)
links - collection of linksCopyright © 2015. All rights reserved.