Interface FilteringObjective.Builder
-
- All Superinterfaces:
Objective.Builder
- All Known Implementing Classes:
DefaultFilteringObjective.Builder
- Enclosing interface:
- FilteringObjective
public static interface FilteringObjective.Builder extends Objective.Builder
Builder of Filtering objective entities.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FilteringObjectiveadd()Builds the filtering objective that will be added.FilteringObjectiveadd(ObjectiveContext context)Builds the filtering objective that will be added.FilteringObjective.BuilderaddCondition(Criterion criterion)Add a filtering condition.FilteringObjective.Builderdeny()Deny this filtering condition set.FilteringObjective.BuilderfromApp(ApplicationId appId)Assigns an application id.FilteringObjective.BuildermakePermanent()Makes the filtering objective permanent.FilteringObjective.Builderpermit()Permit this filtering condition set.FilteringObjectiveremove()Builds the filtering objective that will be removed.FilteringObjectiveremove(ObjectiveContext context)Builds the filtering objective that will be removed.FilteringObjective.BuilderwithKey(Criterion key)Specify the key for the filter.FilteringObjective.BuilderwithMeta(TrafficTreatment treatment)Set meta information about this filtering condition set.FilteringObjective.BuilderwithPriority(int priority)Sets the priority for this objective.-
Methods inherited from interface org.onosproject.net.flowobjective.Objective.Builder
makeTemporary
-
-
-
-
Method Detail
-
withKey
FilteringObjective.Builder withKey(Criterion key)
Specify the key for the filter.- Parameters:
key- a criterion- Returns:
- a filter objective builder
-
addCondition
FilteringObjective.Builder addCondition(Criterion criterion)
Add a filtering condition.- Parameters:
criterion- new criterion- Returns:
- a filtering builder
-
permit
FilteringObjective.Builder permit()
Permit this filtering condition set.- Returns:
- a filtering builder
-
deny
FilteringObjective.Builder deny()
Deny this filtering condition set.- Returns:
- a filtering builder
-
withMeta
FilteringObjective.Builder withMeta(TrafficTreatment treatment)
Set meta information about this filtering condition set.- Parameters:
treatment- traffic treatment to use- Returns:
- a filtering builder
-
fromApp
FilteringObjective.Builder fromApp(ApplicationId appId)
Assigns an application id.- Specified by:
fromAppin interfaceObjective.Builder- Parameters:
appId- an application id- Returns:
- a filtering builder
-
withPriority
FilteringObjective.Builder withPriority(int priority)
Sets the priority for this objective.- Specified by:
withPriorityin interfaceObjective.Builder- Parameters:
priority- an integer- Returns:
- an objective builder
-
makePermanent
FilteringObjective.Builder makePermanent()
Makes the filtering objective permanent.- Specified by:
makePermanentin interfaceObjective.Builder- Returns:
- an objective builder
-
add
FilteringObjective add()
Builds the filtering objective that will be added.- Specified by:
addin interfaceObjective.Builder- Returns:
- a filtering objective
-
remove
FilteringObjective remove()
Builds the filtering objective that will be removed.- Specified by:
removein interfaceObjective.Builder- Returns:
- a filtering objective.
-
add
FilteringObjective add(ObjectiveContext context)
Builds the filtering 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 filtering objective
-
remove
FilteringObjective remove(ObjectiveContext context)
Builds the filtering 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 filtering objective
-
-