@Beta public abstract class DomainIntent extends Intent
| Modifier and Type | Class and Description |
|---|---|
static class |
DomainIntent.Builder
Abstract builder for connectivity intents.
|
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
DomainIntent()
Constructor for serializer.
|
|
DomainIntent(ApplicationId appId,
Key key,
Collection<NetworkResource> resources,
int priority,
Set<FilteredConnectPoint> filteredIngressPoints,
Set<FilteredConnectPoint> filteredEgressPoints,
TrafficTreatment treatment,
List<Constraint> constraints) |
| Modifier and Type | Method and Description |
|---|---|
List<Constraint> |
constraints()
Returns the set of connectivity constraints.
|
Set<FilteredConnectPoint> |
filteredEgressPoints()
Returns the filtered connected points on which the traffic should egress.
|
Set<FilteredConnectPoint> |
filteredIngressPoints()
Returns the filtered connected points on which the ingress traffic
should be connected to the egress.
|
boolean |
isInstallable()
Indicates whether or not the intent is installable.
|
TrafficTreatment |
treatment()
Returns the action applied to the traffic at the egress.
|
appId, bindIdGenerator, equals, hashCode, id, key, priority, resourceGroup, resources, unbindIdGeneratorpublic DomainIntent(ApplicationId appId, Key key, Collection<NetworkResource> resources, int priority, Set<FilteredConnectPoint> filteredIngressPoints, Set<FilteredConnectPoint> filteredEgressPoints, TrafficTreatment treatment, List<Constraint> constraints)
appId - application identifierkey - explicit key to use for intentresources - required network resources (optional)priority - intent priorityfilteredIngressPoints - filtered ingress pointsfilteredEgressPoints - filtered egress pointstreatment - action to be applied at the egressconstraints - constraints of the intentNullPointerException - if filteredIngressPoints or
filteredEgressPoints or appId
or constraints is null.IllegalArgumentException - if filteredIngressPoints or filteredEgressPoints is empty.protected DomainIntent()
public boolean isInstallable()
IntentisInstallable in class Intentpublic Set<FilteredConnectPoint> filteredIngressPoints()
public Set<FilteredConnectPoint> filteredEgressPoints()
public TrafficTreatment treatment()
public List<Constraint> constraints()