Package org.onosproject.net.intent
Class PointToPointIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.ConnectivityIntent
-
- org.onosproject.net.intent.PointToPointIntent
-
@Beta public final class PointToPointIntent extends ConnectivityIntent
Abstraction of point-to-point connectivity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PointToPointIntent.Builder
Builder of a point to 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 protected
PointToPointIntent()
Constructor for serializer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PointToPointIntent.Builder
builder()
Returns a new point to point intent builder.FilteredConnectPoint
filteredEgressPoint()
Return the filtered port on which the traffic should exit.FilteredConnectPoint
filteredIngressPoint()
Returns the filtered port on which the ingress traffic should be connected to the egress.java.util.List<Link>
suggestedPath()
Return the suggested path (as a list of links) that the compiler should use.java.lang.String
toString()
-
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 PointToPointIntent.Builder builder()
Returns a new point to point intent builder. The application id, ingress point and egress point are required fields. If they are not set by calls to the appropriate methods, an exception will be thrown.- Returns:
- point to point builder
-
filteredIngressPoint
public FilteredConnectPoint filteredIngressPoint()
Returns the filtered port on which the ingress traffic should be connected to the egress.- Returns:
- ingress port
-
filteredEgressPoint
public FilteredConnectPoint filteredEgressPoint()
Return the filtered port on which the traffic should exit.- Returns:
- egress port
-
suggestedPath
public java.util.List<Link> suggestedPath()
Return the suggested path (as a list of links) that the compiler should use.- Returns:
- suggested path
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-