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 SummaryNested Classes Modifier and Type Class Description static classDefaultNextObjective.Builder- 
Nested classes/interfaces inherited from interface org.onosproject.net.flowobjective.NextObjectiveNextObjective.Type
 - 
Nested classes/interfaces inherited from interface org.onosproject.net.flowobjective.ObjectiveObjective.Operation
 
- 
 - 
Field Summary- 
Fields inherited from interface org.onosproject.net.flowobjective.ObjectiveDEFAULT_PERMANENT, DEFAULT_PRIORITY, DEFAULT_TIMEOUT, MAX_PRIORITY, MIN_PRIORITY
 
- 
 - 
Method SummaryAll 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- 
nextpublic 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 interface- NextObjective
- Returns:
- a collection of traffic treatments
 
 - 
nextTreatmentspublic 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 interface- NextObjective
- Returns:
- a collection of next treatments
 
 - 
typepublic 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 interface- NextObjective
- Returns:
- a type
 
 - 
idpublic int id() Description copied from interface:ObjectiveAn identifier for this objective.
 - 
prioritypublic int priority() Description copied from interface:ObjectiveThe priority for this objective.
 - 
appIdpublic ApplicationId appId() Description copied from interface:ObjectiveThe application which applied this objective.
 - 
timeoutpublic int timeout() Description copied from interface:ObjectiveThe timeout for this objective.
 - 
permanentpublic boolean permanent() Description copied from interface:ObjectiveWhether this objective is permanent.
 - 
oppublic Objective.Operation op() Description copied from interface:ObjectiveThe type of operation for this objective.
 - 
contextpublic java.util.Optional<ObjectiveContext> context() Description copied from interface:ObjectiveObtains an optional context.
 - 
metapublic 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 interface- NextObjective
- Returns:
- a selector intended to pass meta information to the device driver. Value may be null if no meta information is provided.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
builderpublic static DefaultNextObjective.Builder builder() Returns a new builder.- Returns:
- new builder
 
 - 
copypublic DefaultNextObjective.Builder copy() Description copied from interface:NextObjectiveReturns a new builder set to create a copy of this objective.- Specified by:
- copyin interface- NextObjective
- Specified by:
- copyin interface- Objective
- Returns:
- new builder
 
 
- 
 
-