Class DefaultForwardingObjective.Builder
- java.lang.Object
- 
- org.onosproject.net.flowobjective.DefaultForwardingObjective.Builder
 
- 
- All Implemented Interfaces:
- ForwardingObjective.Builder,- Objective.Builder
 - Enclosing class:
- DefaultForwardingObjective
 
 public static final class DefaultForwardingObjective.Builder extends java.lang.Object implements ForwardingObjective.Builder 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardingObjectiveadd()Builds the forwarding objective that will be added.ForwardingObjectiveadd(ObjectiveContext context)Builds the forwarding objective that will be added.DefaultForwardingObjective.BuilderfromApp(ApplicationId appId)Assigns an application id.DefaultForwardingObjective.BuildermakePermanent()Makes the filtering objective permanent.DefaultForwardingObjective.BuildermakeTemporary(int timeout)Makes the filtering objective temporary.DefaultForwardingObjective.BuildernextStep(int nextId)Assigns a next step to the forwarding objective.ForwardingObjectiveremove()Builds the forwarding objective that will be removed.ForwardingObjectiveremove(ObjectiveContext context)Builds the forwarding objective that will be removed.DefaultForwardingObjective.BuilderwithFlag(ForwardingObjective.Flag flag)Assigns the flag to the forwarding objective.DefaultForwardingObjective.BuilderwithMeta(TrafficSelector meta)Set meta information related to this forwarding objective.DefaultForwardingObjective.BuilderwithPriority(int priority)Sets the priority for this objective.DefaultForwardingObjective.BuilderwithSelector(TrafficSelector selector)Assigns a selector to the forwarding objective.DefaultForwardingObjective.BuilderwithTreatment(TrafficTreatment treatment)Assigns the treatment for this forwarding objective.
 
- 
- 
- 
Method Detail- 
withSelectorpublic DefaultForwardingObjective.Builder withSelector(TrafficSelector selector) Description copied from interface:ForwardingObjective.BuilderAssigns a selector to the forwarding objective.- Specified by:
- withSelectorin interface- ForwardingObjective.Builder
- Parameters:
- selector- a traffic selector
- Returns:
- a forwarding objective builder
 
 - 
nextSteppublic DefaultForwardingObjective.Builder nextStep(int nextId) Description copied from interface:ForwardingObjective.BuilderAssigns a next step to the forwarding objective.- Specified by:
- nextStepin interface- ForwardingObjective.Builder
- Parameters:
- nextId- a next objective id.
- Returns:
- a forwarding objective builder
 
 - 
withTreatmentpublic DefaultForwardingObjective.Builder withTreatment(TrafficTreatment treatment) Description copied from interface:ForwardingObjective.BuilderAssigns the treatment for this forwarding objective.- Specified by:
- withTreatmentin interface- ForwardingObjective.Builder
- Parameters:
- treatment- a traffic treatment
- Returns:
- a forwarding objective
 
 - 
withFlagpublic DefaultForwardingObjective.Builder withFlag(ForwardingObjective.Flag flag) Description copied from interface:ForwardingObjective.BuilderAssigns the flag to the forwarding objective.- Specified by:
- withFlagin interface- ForwardingObjective.Builder
- Parameters:
- flag- a flag
- Returns:
- a forwarding objective builder
 
 - 
makeTemporarypublic DefaultForwardingObjective.Builder makeTemporary(int timeout) Description copied from interface:Objective.BuilderMakes the filtering objective temporary.- Specified by:
- makeTemporaryin interface- Objective.Builder
- Parameters:
- timeout- a timeout
- Returns:
- an objective builder
 
 - 
makePermanentpublic DefaultForwardingObjective.Builder makePermanent() Description copied from interface:ForwardingObjective.BuilderMakes the filtering objective permanent.- Specified by:
- makePermanentin interface- ForwardingObjective.Builder
- Specified by:
- makePermanentin interface- Objective.Builder
- Returns:
- an objective builder
 
 - 
fromApppublic DefaultForwardingObjective.Builder fromApp(ApplicationId appId) Description copied from interface:ForwardingObjective.BuilderAssigns an application id.- Specified by:
- fromAppin interface- ForwardingObjective.Builder
- Specified by:
- fromAppin interface- Objective.Builder
- Parameters:
- appId- an application id
- Returns:
- a filtering builder
 
 - 
withPrioritypublic DefaultForwardingObjective.Builder withPriority(int priority) Description copied from interface:ForwardingObjective.BuilderSets the priority for this objective.- Specified by:
- withPriorityin interface- ForwardingObjective.Builder
- Specified by:
- withPriorityin interface- Objective.Builder
- Parameters:
- priority- an integer
- Returns:
- an objective builder
 
 - 
withMetapublic DefaultForwardingObjective.Builder withMeta(TrafficSelector meta) Description copied from interface:ForwardingObjective.BuilderSet meta information related to this forwarding objective.- Specified by:
- withMetain interface- ForwardingObjective.Builder
- Parameters:
- meta- match conditions
- Returns:
- an objective builder
 
 - 
addpublic ForwardingObjective add() Description copied from interface:ForwardingObjective.BuilderBuilds the forwarding objective that will be added.- Specified by:
- addin interface- ForwardingObjective.Builder
- Specified by:
- addin interface- Objective.Builder
- Returns:
- a forwarding objective
 
 - 
removepublic ForwardingObjective remove() Description copied from interface:ForwardingObjective.BuilderBuilds the forwarding objective that will be removed.- Specified by:
- removein interface- ForwardingObjective.Builder
- Specified by:
- removein interface- Objective.Builder
- Returns:
- a forwarding objective.
 
 - 
addpublic ForwardingObjective add(ObjectiveContext context) Description copied from interface:ForwardingObjective.BuilderBuilds the forwarding objective that will be added. The context will be used to notify the calling application.- Specified by:
- addin interface- ForwardingObjective.Builder
- Specified by:
- addin interface- Objective.Builder
- Parameters:
- context- an objective context
- Returns:
- a forwarding objective
 
 - 
removepublic ForwardingObjective remove(ObjectiveContext context) Description copied from interface:ForwardingObjective.BuilderBuilds the forwarding objective that will be removed. The context will be used to notify the calling application.- Specified by:
- removein interface- ForwardingObjective.Builder
- Specified by:
- removein interface- Objective.Builder
- Parameters:
- context- an objective context
- Returns:
- a forwarding objective
 
 
- 
 
-