Package org.onosproject.net.intent
Class LinkCollectionIntent.Builder
- java.lang.Object
-
- org.onosproject.net.intent.Intent.Builder
-
- org.onosproject.net.intent.ConnectivityIntent.Builder
-
- org.onosproject.net.intent.LinkCollectionIntent.Builder
-
- Enclosing class:
- LinkCollectionIntent
public static final class LinkCollectionIntent.Builder extends ConnectivityIntent.Builder
Builder of a single point to multi point intent.
-
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.ConnectivityIntent.Builder
constraints, selector, treatment
-
Fields inherited from class org.onosproject.net.intent.Intent.Builder
appId, key, priority, resourceGroup, resources
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkCollectionIntent.BuilderappId(ApplicationId appId)Sets the application id for the intent that will be built.LinkCollectionIntent.BuilderapplyTreatmentOnEgress(boolean treatmentOnEgress)Sets the intent to apply treatment at the egress rather than the ingress.LinkCollectionIntentbuild()Builds a single point to multi point intent from the accumulated parameters.LinkCollectionIntent.Builderconstraints(List<Constraint> constraints)Sets the constraints for the intent that will be built.LinkCollectionIntent.Buildercost(double cost)Sets the cost for the links of the Intent.LinkCollectionIntent.BuilderfilteredEgressPoints(Set<FilteredConnectPoint> egressPoints)Sets the filtered egress points of the single point to multi point intent that will be built.LinkCollectionIntent.BuilderfilteredIngressPoints(Set<FilteredConnectPoint> ingressPoints)Sets the filtered ingress point of the single point to multi point intent that will be built.LinkCollectionIntent.Builderkey(Key key)Sets the key for the intent that will be built.LinkCollectionIntent.Builderlinks(Set<Link> links)Sets the links of the link collection intent that will be built.LinkCollectionIntent.Builderpriority(int priority)Sets the priority for the intent that will be built.LinkCollectionIntent.BuilderresourceGroup(ResourceGroup resourceGroup)Sets the resource group for this intent.LinkCollectionIntent.Builderresources(Collection<NetworkResource> resources)Sets the collection of resources required for this intent.LinkCollectionIntent.Builderselector(TrafficSelector selector)Sets the traffic selector for the intent that will be built.LinkCollectionIntent.Buildertreatment(TrafficTreatment treatment)Sets the traffic treatment for the intent that will be built.
-
-
-
Method Detail
-
appId
public LinkCollectionIntent.Builder appId(ApplicationId appId)
Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
appIdin classConnectivityIntent.Builder- Parameters:
appId- application id to use for built intent- Returns:
- this builder
-
key
public LinkCollectionIntent.Builder key(Key key)
Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
keyin classConnectivityIntent.Builder- Parameters:
key- key to use for built intent- Returns:
- this builder
-
selector
public LinkCollectionIntent.Builder selector(TrafficSelector selector)
Description copied from class:ConnectivityIntent.BuilderSets the traffic selector for the intent that will be built.- Overrides:
selectorin classConnectivityIntent.Builder- Parameters:
selector- selector to use for built intent- Returns:
- this builder
-
treatment
public LinkCollectionIntent.Builder treatment(TrafficTreatment treatment)
Description copied from class:ConnectivityIntent.BuilderSets the traffic treatment for the intent that will be built.- Overrides:
treatmentin classConnectivityIntent.Builder- Parameters:
treatment- treatment to use for built intent- Returns:
- this builder
-
constraints
public LinkCollectionIntent.Builder constraints(List<Constraint> constraints)
Description copied from class:ConnectivityIntent.BuilderSets the constraints for the intent that will be built.- Overrides:
constraintsin classConnectivityIntent.Builder- Parameters:
constraints- constraints to use for built intent- Returns:
- this builder
-
priority
public LinkCollectionIntent.Builder priority(int priority)
Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
priorityin classConnectivityIntent.Builder- Parameters:
priority- priority to use for built intent- Returns:
- this builder
-
resources
public LinkCollectionIntent.Builder resources(Collection<NetworkResource> resources)
Description copied from class:Intent.BuilderSets the collection of resources required for this intent.- Overrides:
resourcesin classIntent.Builder- Parameters:
resources- collection of resources- Returns:
- this builder
-
resourceGroup
public LinkCollectionIntent.Builder resourceGroup(ResourceGroup resourceGroup)
Description copied from class:Intent.BuilderSets the resource group for this intent.- Overrides:
resourceGroupin classIntent.Builder- Parameters:
resourceGroup- the resource group- Returns:
- this builder
-
filteredIngressPoints
public LinkCollectionIntent.Builder filteredIngressPoints(Set<FilteredConnectPoint> ingressPoints)
Sets the filtered ingress point of the single point to multi point intent that will be built.- Parameters:
ingressPoints- ingress connect points- Returns:
- this builder
-
filteredEgressPoints
public LinkCollectionIntent.Builder filteredEgressPoints(Set<FilteredConnectPoint> egressPoints)
Sets the filtered egress points of the single point to multi point intent that will be built.- Parameters:
egressPoints- egress connect points- Returns:
- this builder
-
links
public LinkCollectionIntent.Builder links(Set<Link> links)
Sets the links of the link collection intent that will be built.- Parameters:
links- links for the intent- Returns:
- this builder
-
applyTreatmentOnEgress
public LinkCollectionIntent.Builder applyTreatmentOnEgress(boolean treatmentOnEgress)
Sets the intent to apply treatment at the egress rather than the ingress.- Parameters:
treatmentOnEgress- true applies treatment on egress device- Returns:
- this builder
-
cost
public LinkCollectionIntent.Builder cost(double cost)
Sets the cost for the links of the Intent.- Parameters:
cost- the cost of the links- Returns:
- this builder
-
build
public LinkCollectionIntent build()
Builds a single point to multi point intent from the accumulated parameters.- Returns:
- point to point intent
-
-