public static final class DefaultNextObjective.Builder extends Object implements NextObjective.Builder
| Modifier and Type | Method and Description |
|---|---|
NextObjective |
add()
Builds the next objective that will be added.
|
NextObjective |
add(ObjectiveContext context)
Builds the next objective that will be added.
|
NextObjective |
addToExisting()
Build the next objective that will be added, with
Operation
ADD_TO_EXISTING. |
NextObjective |
addToExisting(ObjectiveContext context)
Builds the next objective that will be added, with
Operation
ADD_TO_EXISTING. |
DefaultNextObjective.Builder |
addTreatment(NextTreatment nextTreatment)
Adds a next treatment to this next step.
|
DefaultNextObjective.Builder |
addTreatment(TrafficTreatment treatment)
Adds a treatment to this next step.
|
DefaultNextObjective.Builder |
fromApp(ApplicationId appId)
Specifies the application which applied the filter.
|
DefaultNextObjective.Builder |
makePermanent()
Noop.
|
DefaultNextObjective.Builder |
makeTemporary(int timeout)
Noop.
|
NextObjective |
modify()
Build the next objective that will be modified with
Operation
MODIFY. |
NextObjective |
modify(ObjectiveContext context)
Build the next objective that will be modified, with
Operation
MODIFY. |
NextObjective |
remove()
Builds the next objective that will be removed.
|
NextObjective |
remove(ObjectiveContext context)
Builds the next objective that will be removed.
|
NextObjective |
removeFromExisting()
Build the next objective that will be removed, with
Operation
REMOVE_FROM_EXISTING. |
NextObjective |
removeFromExisting(ObjectiveContext context)
Builds the next objective that will be removed, with
Operation
REMOVE_FROM_EXISTING. |
NextObjective |
verify()
Builds the next objective that needs to be verified.
|
NextObjective |
verify(ObjectiveContext context)
Builds the next objective that needs to be verified.
|
DefaultNextObjective.Builder |
withId(int nextId)
Specifies the id for this next objective.
|
DefaultNextObjective.Builder |
withMeta(TrafficSelector meta)
Set meta information related to this next objective.
|
DefaultNextObjective.Builder |
withPriority(int priority)
Noop.
|
DefaultNextObjective.Builder |
withType(NextObjective.Type type)
Sets the type of next step.
|
public DefaultNextObjective.Builder withId(int nextId)
NextObjective.BuilderwithId in interface NextObjective.BuildernextId - an integerpublic DefaultNextObjective.Builder withType(NextObjective.Type type)
NextObjective.BuilderwithType in interface NextObjective.Buildertype - a typepublic DefaultNextObjective.Builder addTreatment(TrafficTreatment treatment)
NextObjective.BuilderaddTreatment in interface NextObjective.Buildertreatment - a traffic treatmentpublic DefaultNextObjective.Builder addTreatment(NextTreatment nextTreatment)
NextObjective.BuilderaddTreatment in interface NextObjective.BuildernextTreatment - a next treatmentpublic DefaultNextObjective.Builder makeTemporary(int timeout)
makeTemporary in interface Objective.Buildertimeout - a timeoutpublic DefaultNextObjective.Builder makePermanent()
makePermanent in interface Objective.Builderpublic DefaultNextObjective.Builder fromApp(ApplicationId appId)
NextObjective.BuilderfromApp in interface NextObjective.BuilderfromApp in interface Objective.BuilderappId - an application idpublic DefaultNextObjective.Builder withPriority(int priority)
withPriority in interface NextObjective.BuilderwithPriority in interface Objective.Builderpriority - an integerpublic DefaultNextObjective.Builder withMeta(TrafficSelector meta)
NextObjective.BuilderwithMeta in interface NextObjective.Buildermeta - match conditionspublic NextObjective add()
NextObjective.Builderadd in interface NextObjective.Builderadd in interface Objective.Builderpublic NextObjective remove()
NextObjective.Builderremove in interface NextObjective.Builderremove in interface Objective.Builderpublic NextObjective add(ObjectiveContext context)
NextObjective.Builderadd in interface NextObjective.Builderadd in interface Objective.Buildercontext - an objective contextpublic NextObjective remove(ObjectiveContext context)
NextObjective.Builderremove in interface NextObjective.Builderremove in interface Objective.Buildercontext - an objective contextpublic NextObjective addToExisting()
NextObjective.BuilderOperation
ADD_TO_EXISTING.addToExisting in interface NextObjective.Builderpublic NextObjective removeFromExisting()
NextObjective.BuilderOperation
REMOVE_FROM_EXISTING.removeFromExisting in interface NextObjective.Builderpublic NextObjective addToExisting(ObjectiveContext context)
NextObjective.BuilderOperation
ADD_TO_EXISTING. The context will be used to notify the calling application.addToExisting in interface NextObjective.Buildercontext - an objective contextpublic NextObjective removeFromExisting(ObjectiveContext context)
NextObjective.BuilderOperation
REMOVE_FROM_EXISTING. The context will be used to notify the calling application.removeFromExisting in interface NextObjective.Buildercontext - an objective contextpublic NextObjective modify()
NextObjective.BuilderOperation
MODIFY.modify in interface NextObjective.Builderpublic NextObjective modify(ObjectiveContext context)
NextObjective.BuilderOperation
MODIFY. The context will be used to notify the calling application.modify in interface NextObjective.Buildercontext - an objective contextpublic NextObjective verify()
NextObjective.Builderverify in interface NextObjective.BuilderOperation VERIFYpublic NextObjective verify(ObjectiveContext context)
NextObjective.Builderverify in interface NextObjective.Buildercontext - an objective contextOperation VERIFY