Interface ForwardingObjective.Builder
-
- All Superinterfaces:
Objective.Builder
- All Known Implementing Classes:
DefaultForwardingObjective.Builder
- Enclosing interface:
- ForwardingObjective
public static interface ForwardingObjective.Builder extends Objective.Builder
A forwarding objective builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ForwardingObjectiveadd()Builds the forwarding objective that will be added.ForwardingObjectiveadd(ObjectiveContext context)Builds the forwarding objective that will be added.ForwardingObjective.BuilderfromApp(ApplicationId appId)Assigns an application id.ForwardingObjective.BuildermakePermanent()Makes the forwarding objective permanent.ForwardingObjective.BuildernextStep(int nextId)Assigns a next step to the forwarding objective.ForwardingObjectiveremove()Builds the forwarding objective that will be removed.ForwardingObjectiveremove(ObjectiveContext context)Builds the forwarding objective that will be removed.ForwardingObjective.BuilderwithAnnotations(Annotations annotations)Adds annotations to the forwarding objective.ForwardingObjective.BuilderwithFlag(ForwardingObjective.Flag flag)Assigns the flag to the forwarding objective.ForwardingObjective.BuilderwithMeta(TrafficSelector selector)Set meta information related to this forwarding objective.ForwardingObjective.BuilderwithPriority(int priority)Sets the priority for this objective.ForwardingObjective.BuilderwithSelector(TrafficSelector selector)Assigns a selector to the forwarding objective.ForwardingObjective.BuilderwithTreatment(TrafficTreatment treatment)Assigns the treatment for this forwarding objective.-
Methods inherited from interface org.onosproject.net.flowobjective.Objective.Builder
makeTemporary
-
-
-
-
Method Detail
-
withSelector
ForwardingObjective.Builder withSelector(TrafficSelector selector)
Assigns a selector to the forwarding objective.- Parameters:
selector- a traffic selector- Returns:
- a forwarding objective builder
-
nextStep
ForwardingObjective.Builder nextStep(int nextId)
Assigns a next step to the forwarding objective.- Parameters:
nextId- a next objective id.- Returns:
- a forwarding objective builder
-
withTreatment
ForwardingObjective.Builder withTreatment(TrafficTreatment treatment)
Assigns the treatment for this forwarding objective.- Parameters:
treatment- a traffic treatment- Returns:
- a forwarding objective
-
withFlag
ForwardingObjective.Builder withFlag(ForwardingObjective.Flag flag)
Assigns the flag to the forwarding objective.- Parameters:
flag- a flag- Returns:
- a forwarding objective builder
-
withMeta
ForwardingObjective.Builder withMeta(TrafficSelector selector)
Set meta information related to this forwarding objective.- Parameters:
selector- match conditions- Returns:
- an objective builder
-
fromApp
ForwardingObjective.Builder fromApp(ApplicationId appId)
Assigns an application id.- Specified by:
fromAppin interfaceObjective.Builder- Parameters:
appId- an application id- Returns:
- a filtering builder
-
withPriority
ForwardingObjective.Builder withPriority(int priority)
Sets the priority for this objective.- Specified by:
withPriorityin interfaceObjective.Builder- Parameters:
priority- an integer- Returns:
- an objective builder
-
makePermanent
ForwardingObjective.Builder makePermanent()
Makes the forwarding objective permanent.- Specified by:
makePermanentin interfaceObjective.Builder- Returns:
- an objective builder
-
withAnnotations
ForwardingObjective.Builder withAnnotations(Annotations annotations)
Adds annotations to the forwarding objective.- Specified by:
withAnnotationsin interfaceObjective.Builder- Parameters:
annotations- the annotations for the forwarding objective- Returns:
- a forwarding objective builder
-
add
ForwardingObjective add()
Builds the forwarding objective that will be added.- Specified by:
addin interfaceObjective.Builder- Returns:
- a forwarding objective
-
remove
ForwardingObjective remove()
Builds the forwarding objective that will be removed.- Specified by:
removein interfaceObjective.Builder- Returns:
- a forwarding objective.
-
add
ForwardingObjective add(ObjectiveContext context)
Builds the forwarding objective that will be added. The context will be used to notify the calling application.- Specified by:
addin interfaceObjective.Builder- Parameters:
context- an objective context- Returns:
- a forwarding objective
-
remove
ForwardingObjective remove(ObjectiveContext context)
Builds the forwarding objective that will be removed. The context will be used to notify the calling application.- Specified by:
removein interfaceObjective.Builder- Parameters:
context- an objective context- Returns:
- a forwarding objective
-
-