Package org.onosproject.net.intent
Class LinkCollectionIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.ConnectivityIntent
-
- org.onosproject.net.intent.LinkCollectionIntent
-
@Beta public final class LinkCollectionIntent extends ConnectivityIntent
Abstraction of a connectivity intent that is implemented by a set of path segments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinkCollectionIntent.BuilderBuilder of a single point to multi point intent.
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLinkCollectionIntent()Constructor for serializer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyTreatmentOnEgress()Returns whether treatment should be applied on egress.static LinkCollectionIntent.Builderbuilder()Returns a new link collection intent builder.doublecost()Returns the cost of the links of this intent.java.util.Set<ConnectPoint>egressPoints()Returns the egress points of the intent.java.util.Set<FilteredConnectPoint>filteredEgressPoints()Returns the egress points of the intent.java.util.Set<FilteredConnectPoint>filteredIngressPoints()Returns the filtered ingress points of the intent.java.util.Set<ConnectPoint>ingressPoints()Returns the ingress points of the intent.java.util.Set<Link>links()Returns the set of links that represent the network connections needed by this intent.java.lang.StringtoString()-
Methods inherited from class org.onosproject.net.intent.ConnectivityIntent
constraints, resources, resources, selector, treatment
-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Method Detail
-
builder
public static LinkCollectionIntent.Builder builder()
Returns a new link collection intent builder. The application id, ingress point and egress points are required fields. If they are not set by calls to the appropriate methods, an exception will be thrown.- Returns:
- single point to multi point builder
-
links
public java.util.Set<Link> links()
Returns the set of links that represent the network connections needed by this intent.- Returns:
- Set of links for the network hops needed by this intent
-
ingressPoints
public java.util.Set<ConnectPoint> ingressPoints()
Returns the ingress points of the intent.- Returns:
- the ingress points
-
egressPoints
public java.util.Set<ConnectPoint> egressPoints()
Returns the egress points of the intent.- Returns:
- the egress points
-
filteredIngressPoints
public java.util.Set<FilteredConnectPoint> filteredIngressPoints()
Returns the filtered ingress points of the intent.- Returns:
- the ingress points
-
filteredEgressPoints
public java.util.Set<FilteredConnectPoint> filteredEgressPoints()
Returns the egress points of the intent.- Returns:
- the egress points
-
applyTreatmentOnEgress
public boolean applyTreatmentOnEgress()
Returns whether treatment should be applied on egress.- Returns:
- the egress treatment flag
-
cost
public double cost()
Returns the cost of the links of this intent.- Returns:
- the cost of the links
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-