Package org.onosproject.net.domain
Class DomainIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.domain.DomainIntent
-
- Direct Known Subclasses:
DomainPointToPointIntent
@Beta public abstract class DomainIntent extends Intent
Intents targeting a domain network.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDomainIntent.BuilderAbstract builder for connectivity intents.
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDomainIntent()Constructor for serializer.DomainIntent(ApplicationId appId, Key key, Collection<NetworkResource> resources, int priority, Set<FilteredConnectPoint> filteredIngressPoints, Set<FilteredConnectPoint> filteredEgressPoints, TrafficTreatment treatment, List<Constraint> constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.booleanisInstallable()Indicates whether or not the intent is installable.TrafficTreatmenttreatment()Returns the action applied to the traffic at the egress.-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Constructor Detail
-
DomainIntent
public DomainIntent(ApplicationId appId, Key key, Collection<NetworkResource> resources, int priority, Set<FilteredConnectPoint> filteredIngressPoints, Set<FilteredConnectPoint> filteredEgressPoints, TrafficTreatment treatment, List<Constraint> constraints)
- Parameters:
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 intent- Throws:
NullPointerException- iffilteredIngressPointsorfilteredEgressPointsorappIdorconstraintsis null.IllegalArgumentException- iffilteredIngressPointsorfilteredEgressPointsis empty.
-
DomainIntent
protected DomainIntent()
Constructor for serializer.
-
-
Method Detail
-
isInstallable
public boolean isInstallable()
Description copied from class:IntentIndicates whether or not the intent is installable.- Overrides:
isInstallablein classIntent- Returns:
- true if installable
-
filteredIngressPoints
public Set<FilteredConnectPoint> filteredIngressPoints()
Returns the filtered connected points on which the ingress traffic should be connected to the egress.- Returns:
- filtered ingress connect points
-
filteredEgressPoints
public Set<FilteredConnectPoint> filteredEgressPoints()
Returns the filtered connected points on which the traffic should egress.- Returns:
- filtered egress connect points
-
treatment
public TrafficTreatment treatment()
Returns the action applied to the traffic at the egress.- Returns:
- applied action
-
constraints
public List<Constraint> constraints()
Returns the set of connectivity constraints.- Returns:
- list of intent constraints
-
-