Package org.onosproject.net.domain
Class DomainPointToPointIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.domain.DomainIntent
-
- org.onosproject.net.domain.DomainPointToPointIntent
-
@Beta public class DomainPointToPointIntent extends DomainIntent
Representation of a point to point intent targeting a domain. It consists into an ingress and an egress filtered connection points and a set of links to represent the path.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainPointToPointIntent.Builder
Builder of a point to point domain 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 protected
DomainPointToPointIntent()
Constructor for serializer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DomainPointToPointIntent.Builder
builder()
Returns a new point to point domain intent builder.java.util.List<Link>
links()
protected static java.util.Collection<NetworkResource>
resources(java.util.Collection<Link> links)
Produces a collection of network resources from the given links.java.lang.String
toString()
-
Methods inherited from class org.onosproject.net.domain.DomainIntent
constraints, filteredEgressPoints, filteredIngressPoints, isInstallable, treatment
-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Method Detail
-
builder
public static DomainPointToPointIntent.Builder builder()
Returns a new point to point domain intent builder. The application id, ingress point, egress point and domainId are required fields. If they are not set by calls to the appropriate methods, an exception will be thrown.- Returns:
- point to point builder
-
links
public java.util.List<Link> links()
-
resources
protected static java.util.Collection<NetworkResource> resources(java.util.Collection<Link> links)
Produces a collection of network resources from the given links.- Parameters:
links
- collection of links- Returns:
- collection of link resources
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-