public static final class DefaultForwardingObjective.Builder extends java.lang.Object implements ForwardingObjective.Builder
Modifier and Type | Method and Description |
---|---|
ForwardingObjective |
add()
Builds the forwarding objective that will be added.
|
ForwardingObjective |
add(ObjectiveContext context)
Builds the forwarding objective that will be added.
|
DefaultForwardingObjective.Builder |
fromApp(ApplicationId appId)
Specifies the application which applied the filter.
|
DefaultForwardingObjective.Builder |
makePermanent()
Makes the filtering objective permanent.
|
DefaultForwardingObjective.Builder |
makeTemporary(int timeout)
Makes the filtering objective temporary.
|
DefaultForwardingObjective.Builder |
nextStep(int nextId)
Assigns a next step to the forwarding objective.
|
ForwardingObjective |
remove()
Builds the forwarding objective that will be removed.
|
ForwardingObjective |
remove(ObjectiveContext context)
Builds the forwarding objective that will be removed.
|
DefaultForwardingObjective.Builder |
withFlag(ForwardingObjective.Flag flag)
Assigns the flag to the forwarding objective.
|
DefaultForwardingObjective.Builder |
withMeta(TrafficSelector meta)
Set meta information related to this forwarding objective.
|
DefaultForwardingObjective.Builder |
withPriority(int priority)
Sets the priority for this objective.
|
DefaultForwardingObjective.Builder |
withSelector(TrafficSelector selector)
Assigns a selector to the forwarding objective.
|
DefaultForwardingObjective.Builder |
withTreatment(TrafficTreatment treatment)
Assigns the treatment for this forwarding objective.
|
public DefaultForwardingObjective.Builder withSelector(TrafficSelector selector)
ForwardingObjective.Builder
withSelector
in interface ForwardingObjective.Builder
selector
- a traffic selectorpublic DefaultForwardingObjective.Builder nextStep(int nextId)
ForwardingObjective.Builder
nextStep
in interface ForwardingObjective.Builder
nextId
- a next objective id.public DefaultForwardingObjective.Builder withTreatment(TrafficTreatment treatment)
ForwardingObjective.Builder
withTreatment
in interface ForwardingObjective.Builder
treatment
- a traffic treatmentpublic DefaultForwardingObjective.Builder withFlag(ForwardingObjective.Flag flag)
ForwardingObjective.Builder
withFlag
in interface ForwardingObjective.Builder
flag
- a flagpublic DefaultForwardingObjective.Builder makeTemporary(int timeout)
Objective.Builder
makeTemporary
in interface Objective.Builder
timeout
- a timeoutpublic DefaultForwardingObjective.Builder makePermanent()
Objective.Builder
makePermanent
in interface Objective.Builder
public DefaultForwardingObjective.Builder fromApp(ApplicationId appId)
Objective.Builder
fromApp
in interface Objective.Builder
appId
- an application idpublic DefaultForwardingObjective.Builder withPriority(int priority)
Objective.Builder
withPriority
in interface Objective.Builder
priority
- an integerpublic DefaultForwardingObjective.Builder withMeta(TrafficSelector meta)
ForwardingObjective.Builder
withMeta
in interface ForwardingObjective.Builder
meta
- match conditionspublic ForwardingObjective add()
ForwardingObjective.Builder
add
in interface ForwardingObjective.Builder
add
in interface Objective.Builder
public ForwardingObjective remove()
ForwardingObjective.Builder
remove
in interface ForwardingObjective.Builder
remove
in interface Objective.Builder
public ForwardingObjective add(ObjectiveContext context)
ForwardingObjective.Builder
add
in interface ForwardingObjective.Builder
add
in interface Objective.Builder
context
- an objective contextpublic ForwardingObjective remove(ObjectiveContext context)
ForwardingObjective.Builder
remove
in interface ForwardingObjective.Builder
remove
in interface Objective.Builder
context
- an objective context