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