Class DefaultNextObjective
- java.lang.Object
 - 
- org.onosproject.net.flowobjective.DefaultNextObjective
 
 
- 
- All Implemented Interfaces:
 NextObjective,Objective
@Beta public final class DefaultNextObjective extends java.lang.Object implements NextObjective
Default implementation of a next objective. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultNextObjective.Builder- 
Nested classes/interfaces inherited from interface org.onosproject.net.flowobjective.NextObjective
NextObjective.Type 
- 
Nested classes/interfaces inherited from interface org.onosproject.net.flowobjective.Objective
Objective.Operation 
 - 
 
- 
Field Summary
- 
Fields inherited from interface org.onosproject.net.flowobjective.Objective
DEFAULT_PERMANENT, DEFAULT_PRIORITY, DEFAULT_TIMEOUT, MAX_PRIORITY, MIN_PRIORITY 
 - 
 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationIdappId()The application which applied this objective.static DefaultNextObjective.Builderbuilder()Returns a new builder.java.util.Optional<ObjectiveContext>context()Obtains an optional context.DefaultNextObjective.Buildercopy()Returns a new builder set to create a copy of this objective.booleanequals(java.lang.Object obj)inthashCode()intid()An identifier for this objective.TrafficSelectormeta()Auxiliary optional information provided to the device driver.java.util.Collection<TrafficTreatment>next()The collection of treatments that need to be applied to a set of traffic.java.util.Collection<NextTreatment>nextTreatments()The collection of next treatments that need to be applied to a set of traffic.Objective.Operationop()The type of operation for this objective.booleanpermanent()Whether this objective is permanent.intpriority()The priority for this objective.inttimeout()The timeout for this objective.java.lang.StringtoString()NextObjective.Typetype()The type of operation that will be applied to the traffic using the collection of treatments. 
 - 
 
- 
- 
Method Detail
- 
next
public java.util.Collection<TrafficTreatment> next()
Description copied from interface:NextObjectiveThe collection of treatments that need to be applied to a set of traffic.- Specified by:
 nextin interfaceNextObjective- Returns:
 - a collection of traffic treatments
 
 
- 
nextTreatments
public java.util.Collection<NextTreatment> nextTreatments()
Description copied from interface:NextObjectiveThe collection of next treatments that need to be applied to a set of traffic.- Specified by:
 nextTreatmentsin interfaceNextObjective- Returns:
 - a collection of next treatments
 
 
- 
type
public NextObjective.Type type()
Description copied from interface:NextObjectiveThe type of operation that will be applied to the traffic using the collection of treatments.- Specified by:
 typein interfaceNextObjective- Returns:
 - a type
 
 
- 
id
public int id()
Description copied from interface:ObjectiveAn identifier for this objective. 
- 
priority
public int priority()
Description copied from interface:ObjectiveThe priority for this objective. 
- 
appId
public ApplicationId appId()
Description copied from interface:ObjectiveThe application which applied this objective. 
- 
timeout
public int timeout()
Description copied from interface:ObjectiveThe timeout for this objective. 
- 
permanent
public boolean permanent()
Description copied from interface:ObjectiveWhether this objective is permanent. 
- 
op
public Objective.Operation op()
Description copied from interface:ObjectiveThe type of operation for this objective. 
- 
context
public java.util.Optional<ObjectiveContext> context()
Description copied from interface:ObjectiveObtains an optional context. 
- 
meta
public TrafficSelector meta()
Description copied from interface:NextObjectiveAuxiliary optional information provided to the device driver. Typically conveys information about selectors (matches) that are intended to use this Next Objective.- Specified by:
 metain interfaceNextObjective- Returns:
 - a selector intended to pass meta information to the device driver. Value may be null if no meta information is provided.
 
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
builder
public static DefaultNextObjective.Builder builder()
Returns a new builder.- Returns:
 - new builder
 
 
- 
copy
public DefaultNextObjective.Builder copy()
Description copied from interface:NextObjectiveReturns a new builder set to create a copy of this objective.- Specified by:
 copyin interfaceNextObjective- Specified by:
 copyin interfaceObjective- Returns:
 - new builder
 
 
 - 
 
 -