public static final class DefaultFilteringObjective.Builder extends java.lang.Object implements FilteringObjective.Builder
Modifier and Type | Method and Description |
---|---|
FilteringObjective |
add()
Builds the filtering objective that will be added.
|
FilteringObjective |
add(ObjectiveContext context)
Builds the filtering objective that will be added.
|
DefaultFilteringObjective.Builder |
addCondition(Criterion criterion)
Add a filtering condition.
|
DefaultFilteringObjective.Builder |
deny()
Deny this filtering condition set.
|
DefaultFilteringObjective.Builder |
fromApp(ApplicationId appId)
Assigns an application id.
|
DefaultFilteringObjective.Builder |
makePermanent()
Makes the filtering objective permanent.
|
DefaultFilteringObjective.Builder |
makeTemporary(int timeout)
Makes the filtering objective temporary.
|
DefaultFilteringObjective.Builder |
permit()
Permit this filtering condition set.
|
FilteringObjective |
remove()
Builds the filtering objective that will be removed.
|
FilteringObjective |
remove(ObjectiveContext context)
Builds the filtering objective that will be removed.
|
DefaultFilteringObjective.Builder |
withKey(Criterion key)
Specify the key for the filter.
|
DefaultFilteringObjective.Builder |
withMeta(TrafficTreatment treatment)
Set meta information about this filtering condition set.
|
DefaultFilteringObjective.Builder |
withPriority(int priority)
Sets the priority for this objective.
|
public DefaultFilteringObjective.Builder withKey(Criterion key)
FilteringObjective.Builder
withKey
in interface FilteringObjective.Builder
key
- a criterionpublic DefaultFilteringObjective.Builder addCondition(Criterion criterion)
FilteringObjective.Builder
addCondition
in interface FilteringObjective.Builder
criterion
- new criterionpublic DefaultFilteringObjective.Builder permit()
FilteringObjective.Builder
permit
in interface FilteringObjective.Builder
public DefaultFilteringObjective.Builder deny()
FilteringObjective.Builder
deny
in interface FilteringObjective.Builder
public DefaultFilteringObjective.Builder makeTemporary(int timeout)
Objective.Builder
makeTemporary
in interface Objective.Builder
timeout
- a timeoutpublic DefaultFilteringObjective.Builder makePermanent()
Objective.Builder
makePermanent
in interface Objective.Builder
public DefaultFilteringObjective.Builder fromApp(ApplicationId appId)
FilteringObjective.Builder
fromApp
in interface FilteringObjective.Builder
fromApp
in interface Objective.Builder
appId
- an application idpublic DefaultFilteringObjective.Builder withPriority(int priority)
Objective.Builder
withPriority
in interface Objective.Builder
priority
- an integerpublic DefaultFilteringObjective.Builder withMeta(TrafficTreatment treatment)
FilteringObjective.Builder
withMeta
in interface FilteringObjective.Builder
treatment
- traffic treatment to usepublic FilteringObjective add()
FilteringObjective.Builder
add
in interface FilteringObjective.Builder
add
in interface Objective.Builder
public FilteringObjective remove()
FilteringObjective.Builder
remove
in interface FilteringObjective.Builder
remove
in interface Objective.Builder
public FilteringObjective add(ObjectiveContext context)
FilteringObjective.Builder
add
in interface FilteringObjective.Builder
add
in interface Objective.Builder
context
- an objective contextpublic FilteringObjective remove(ObjectiveContext context)
FilteringObjective.Builder
remove
in interface FilteringObjective.Builder
remove
in interface Objective.Builder
context
- an objective context