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.Builderconstraints, selector, treatment
 - 
Fields inherited from class org.onosproject.net.intent.Intent.BuilderappId, key, priority, resourceGroup, resources
 
- 
 - 
Method SummaryAll 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(java.util.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(java.util.Set<FilteredConnectPoint> egressPoints)Sets the filtered egress points of the single point to multi point intent that will be built.LinkCollectionIntent.BuilderfilteredIngressPoints(java.util.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(java.util.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(java.util.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- 
appIdpublic LinkCollectionIntent.Builder appId(ApplicationId appId) Description copied from class:Intent.BuilderSets the application id for the intent that will be built.- Overrides:
- appIdin class- ConnectivityIntent.Builder
- Parameters:
- appId- application id to use for built intent
- Returns:
- this builder
 
 - 
keypublic LinkCollectionIntent.Builder key(Key key) Description copied from class:Intent.BuilderSets the key for the intent that will be built.- Overrides:
- keyin class- ConnectivityIntent.Builder
- Parameters:
- key- key to use for built intent
- Returns:
- this builder
 
 - 
selectorpublic LinkCollectionIntent.Builder selector(TrafficSelector selector) Description copied from class:ConnectivityIntent.BuilderSets the traffic selector for the intent that will be built.- Overrides:
- selectorin class- ConnectivityIntent.Builder
- Parameters:
- selector- selector to use for built intent
- Returns:
- this builder
 
 - 
treatmentpublic LinkCollectionIntent.Builder treatment(TrafficTreatment treatment) Description copied from class:ConnectivityIntent.BuilderSets the traffic treatment for the intent that will be built.- Overrides:
- treatmentin class- ConnectivityIntent.Builder
- Parameters:
- treatment- treatment to use for built intent
- Returns:
- this builder
 
 - 
constraintspublic LinkCollectionIntent.Builder constraints(java.util.List<Constraint> constraints) Description copied from class:ConnectivityIntent.BuilderSets the constraints for the intent that will be built.- Overrides:
- constraintsin class- ConnectivityIntent.Builder
- Parameters:
- constraints- constraints to use for built intent
- Returns:
- this builder
 
 - 
prioritypublic LinkCollectionIntent.Builder priority(int priority) Description copied from class:Intent.BuilderSets the priority for the intent that will be built.- Overrides:
- priorityin class- ConnectivityIntent.Builder
- Parameters:
- priority- priority to use for built intent
- Returns:
- this builder
 
 - 
resourcespublic LinkCollectionIntent.Builder resources(java.util.Collection<NetworkResource> resources) Description copied from class:Intent.BuilderSets the collection of resources required for this intent.- Overrides:
- resourcesin class- Intent.Builder
- Parameters:
- resources- collection of resources
- Returns:
- this builder
 
 - 
resourceGrouppublic LinkCollectionIntent.Builder resourceGroup(ResourceGroup resourceGroup) Description copied from class:Intent.BuilderSets the resource group for this intent.- Overrides:
- resourceGroupin class- Intent.Builder
- Parameters:
- resourceGroup- the resource group
- Returns:
- this builder
 
 - 
filteredIngressPointspublic LinkCollectionIntent.Builder filteredIngressPoints(java.util.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
 
 - 
filteredEgressPointspublic LinkCollectionIntent.Builder filteredEgressPoints(java.util.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
 
 - 
linkspublic LinkCollectionIntent.Builder links(java.util.Set<Link> links) Sets the links of the link collection intent that will be built.- Parameters:
- links- links for the intent
- Returns:
- this builder
 
 - 
applyTreatmentOnEgresspublic 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
 
 - 
costpublic LinkCollectionIntent.Builder cost(double cost) Sets the cost for the links of the Intent.- Parameters:
- cost- the cost of the links
- Returns:
- this builder
 
 - 
buildpublic LinkCollectionIntent build() Builds a single point to multi point intent from the accumulated parameters.- Returns:
- point to point intent
 
 
- 
 
-