Interface NextObjective.Builder
-
- All Superinterfaces:
Objective.Builder
- All Known Implementing Classes:
DefaultNextObjective.Builder
- Enclosing interface:
- NextObjective
public static interface NextObjective.Builder extends Objective.Builder
A next step builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description NextObjectiveadd()Builds the next objective that will be added.NextObjectiveadd(ObjectiveContext context)Builds the next objective that will be added.NextObjectiveaddToExisting()Build the next objective that will be added, withObjective.OperationADD_TO_EXISTING.NextObjectiveaddToExisting(ObjectiveContext context)Builds the next objective that will be added, withObjective.OperationADD_TO_EXISTING.NextObjective.BuilderaddTreatment(TrafficTreatment treatment)Deprecated.in 1.14.2, replaced byaddTreatment(NextTreatment)NextObjective.BuilderaddTreatment(NextTreatment nextTreatment)Adds a next treatment to this next step.NextObjective.BuilderfromApp(ApplicationId appId)Specifies the application which applied the filter.NextObjectivemodify()Build the next objective that will be modified withObjective.OperationMODIFY.NextObjectivemodify(ObjectiveContext context)Build the next objective that will be modified, withObjective.OperationMODIFY.NextObjectiveremove()Builds the next objective that will be removed.NextObjectiveremove(ObjectiveContext context)Builds the next objective that will be removed.NextObjectiveremoveFromExisting()Build the next objective that will be removed, withObjective.OperationREMOVE_FROM_EXISTING.NextObjectiveremoveFromExisting(ObjectiveContext context)Builds the next objective that will be removed, withObjective.OperationREMOVE_FROM_EXISTING.NextObjectiveverify()Builds the next objective that needs to be verified.NextObjectiveverify(ObjectiveContext context)Builds the next objective that needs to be verified.NextObjective.BuilderwithId(int nextId)Specifies the id for this next objective.NextObjective.BuilderwithMeta(TrafficSelector selector)Set meta information related to this next objective.NextObjective.BuilderwithPriority(int priority)Sets the priority for this objective.NextObjective.BuilderwithType(NextObjective.Type type)Sets the type of next step.-
Methods inherited from interface org.onosproject.net.flowobjective.Objective.Builder
makePermanent, makeTemporary
-
-
-
-
Method Detail
-
withId
NextObjective.Builder withId(int nextId)
Specifies the id for this next objective.- Parameters:
nextId- an integer- Returns:
- a next objective builder
-
withType
NextObjective.Builder withType(NextObjective.Type type)
Sets the type of next step.- Parameters:
type- a type- Returns:
- a next step builder
-
addTreatment
@Deprecated NextObjective.Builder addTreatment(TrafficTreatment treatment)
Deprecated.in 1.14.2, replaced byaddTreatment(NextTreatment)Adds a treatment to this next step.- Parameters:
treatment- a traffic treatment- Returns:
- a next step builder
-
addTreatment
NextObjective.Builder addTreatment(NextTreatment nextTreatment)
Adds a next treatment to this next step.- Parameters:
nextTreatment- a next treatment- Returns:
- a next step builder
-
fromApp
NextObjective.Builder fromApp(ApplicationId appId)
Specifies the application which applied the filter.- Specified by:
fromAppin interfaceObjective.Builder- Parameters:
appId- an application id- Returns:
- an objective builder
-
withPriority
NextObjective.Builder withPriority(int priority)
Sets the priority for this objective.- Specified by:
withPriorityin interfaceObjective.Builder- Parameters:
priority- an integer- Returns:
- an objective builder
-
withMeta
NextObjective.Builder withMeta(TrafficSelector selector)
Set meta information related to this next objective.- Parameters:
selector- match conditions- Returns:
- an objective builder
-
add
NextObjective add()
Builds the next objective that will be added.- Specified by:
addin interfaceObjective.Builder- Returns:
- a next objective
-
remove
NextObjective remove()
Builds the next objective that will be removed.- Specified by:
removein interfaceObjective.Builder- Returns:
- a next objective.
-
add
NextObjective add(ObjectiveContext context)
Builds the next 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 next objective
-
remove
NextObjective remove(ObjectiveContext context)
Builds the next 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 next objective
-
addToExisting
NextObjective addToExisting()
Build the next objective that will be added, withObjective.OperationADD_TO_EXISTING.- Returns:
- a next objective
-
removeFromExisting
NextObjective removeFromExisting()
Build the next objective that will be removed, withObjective.OperationREMOVE_FROM_EXISTING.- Returns:
- a next objective
-
addToExisting
NextObjective addToExisting(ObjectiveContext context)
Builds the next objective that will be added, withObjective.OperationADD_TO_EXISTING. The context will be used to notify the calling application.- Parameters:
context- an objective context- Returns:
- a next objective
-
removeFromExisting
NextObjective removeFromExisting(ObjectiveContext context)
Builds the next objective that will be removed, withObjective.OperationREMOVE_FROM_EXISTING. The context will be used to notify the calling application.- Parameters:
context- an objective context- Returns:
- a next objective
-
modify
NextObjective modify()
Build the next objective that will be modified withObjective.OperationMODIFY.- Returns:
- a next objective
-
modify
NextObjective modify(ObjectiveContext context)
Build the next objective that will be modified, withObjective.OperationMODIFY. The context will be used to notify the calling application.- Parameters:
context- an objective context- Returns:
- a next objective
-
verify
NextObjective verify()
Builds the next objective that needs to be verified.- Returns:
- a next objective with
Objective.OperationVERIFY
-
verify
NextObjective verify(ObjectiveContext context)
Builds the next objective that needs to be verified. The context will be used to notify the calling application.- Parameters:
context- an objective context- Returns:
- a next objective with
Objective.OperationVERIFY
-
-