Package org.onosproject.net.intent
Class MultiPointToSinglePointIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.ConnectivityIntent
-
- org.onosproject.net.intent.MultiPointToSinglePointIntent
-
@Beta public final class MultiPointToSinglePointIntent extends ConnectivityIntent
Abstraction of multiple source to single destination connectivity intent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiPointToSinglePointIntent.Builder
Builder of a multi point to single 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
MultiPointToSinglePointIntent()
Constructor for serializer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiPointToSinglePointIntent.Builder
builder()
Returns a new multi point to single point intent builder.static MultiPointToSinglePointIntent.Builder
builder(MultiPointToSinglePointIntent intent)
Creates a new builder pre-populated with the information in the given intent.ConnectPoint
egressPoint()
Returns the port on which the traffic should egress.FilteredConnectPoint
filteredEgressPoint()
Returns the port on which the traffic should egress.java.util.Set<FilteredConnectPoint>
filteredIngressPoints()
Returns the set of ports on which ingress traffic should be connected to the egress port.java.util.Set<ConnectPoint>
ingressPoints()
Returns the set of ports on which ingress traffic should be connected to the egress port.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 MultiPointToSinglePointIntent.Builder builder()
Returns a new multi point to single point intent builder. The application id, ingress points and egress point 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
-
builder
public static MultiPointToSinglePointIntent.Builder builder(MultiPointToSinglePointIntent intent)
Creates a new builder pre-populated with the information in the given intent.- Parameters:
intent
- initial intent- Returns:
- intent builder
-
ingressPoints
public java.util.Set<ConnectPoint> ingressPoints()
Returns the set of ports on which ingress traffic should be connected to the egress port.- Returns:
- set of ingress ports
-
egressPoint
public ConnectPoint egressPoint()
Returns the port on which the traffic should egress.- Returns:
- egress port
-
filteredIngressPoints
public java.util.Set<FilteredConnectPoint> filteredIngressPoints()
Returns the set of ports on which ingress traffic should be connected to the egress port.- Returns:
- set of ingress ports
-
filteredEgressPoint
public FilteredConnectPoint filteredEgressPoint()
Returns the port on which the traffic should egress.- Returns:
- egress port
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-