@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,
java.util.Collection<NetworkResource> resources,
int priority,
java.util.Set<FilteredConnectPoint> filteredIngressPoints,
java.util.Set<FilteredConnectPoint> filteredEgressPoints,
TrafficTreatment treatment,
java.util.List<Constraint> constraints) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Constraint> |
constraints()
Returns the set of connectivity constraints.
|
java.util.Set<FilteredConnectPoint> |
filteredEgressPoints()
Returns the filtered connected points on which the traffic should egress.
|
java.util.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, unbindIdGenerator
public DomainIntent(ApplicationId appId, Key key, java.util.Collection<NetworkResource> resources, int priority, java.util.Set<FilteredConnectPoint> filteredIngressPoints, java.util.Set<FilteredConnectPoint> filteredEgressPoints, TrafficTreatment treatment, java.util.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 intentjava.lang.NullPointerException
- if filteredIngressPoints
or
filteredEgressPoints
or appId
or constraints
is null.java.lang.IllegalArgumentException
- if filteredIngressPoints
or filteredEgressPoints
is empty.protected DomainIntent()
public boolean isInstallable()
Intent
isInstallable
in class Intent
public java.util.Set<FilteredConnectPoint> filteredIngressPoints()
public java.util.Set<FilteredConnectPoint> filteredEgressPoints()
public TrafficTreatment treatment()
public java.util.List<Constraint> constraints()