Class DefaultFilteringObjective
- java.lang.Object
-
- org.onosproject.net.flowobjective.DefaultFilteringObjective
-
- All Implemented Interfaces:
FilteringObjective,Objective
@Beta public final class DefaultFilteringObjective extends java.lang.Object implements FilteringObjective
Default implementation of a filtering objective.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultFilteringObjective.Builder-
Nested classes/interfaces inherited from interface org.onosproject.net.flowobjective.FilteringObjective
FilteringObjective.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 DefaultFilteringObjective.Builderbuilder()Returns a new builder.java.util.Collection<Criterion>conditions()The set of conditions the filter must provision at the device.java.util.Optional<ObjectiveContext>context()Obtains an optional context.DefaultFilteringObjective.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.Criterionkey()Obtain the key for this filter.TrafficTreatmentmeta()Auxiliary optional information provided to the device driver.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()FilteringObjective.Typetype()Obtain this filtering type.
-
-
-
Method Detail
-
key
public Criterion key()
Description copied from interface:FilteringObjectiveObtain the key for this filter. The filter may or may not require a key.- Specified by:
keyin interfaceFilteringObjective- Returns:
- a criterion, which could be null if no key was provided.
-
type
public FilteringObjective.Type type()
Description copied from interface:FilteringObjectiveObtain this filtering type.- Specified by:
typein interfaceFilteringObjective- Returns:
- the type
-
conditions
public java.util.Collection<Criterion> conditions()
Description copied from interface:FilteringObjectiveThe set of conditions the filter must provision at the device.- Specified by:
conditionsin interfaceFilteringObjective- Returns:
- a collection of criteria
-
id
public int id()
Description copied from interface:ObjectiveAn identifier for this objective.
-
meta
public TrafficTreatment meta()
Description copied from interface:FilteringObjectiveAuxiliary optional information provided to the device driver. Typically conveys information about changes (treatments) to packets that are permitted into the pipeline by the PERMIT filtering condition.- Specified by:
metain interfaceFilteringObjective- Returns:
- a treatment on the packets that make it through the PERMIT filters. Value may be null if no meta information is provided.
-
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.
-
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 DefaultFilteringObjective.Builder builder()
Returns a new builder.- Returns:
- new builder
-
copy
public DefaultFilteringObjective.Builder copy()
Description copied from interface:FilteringObjectiveReturns a new builder set to create a copy of this objective.- Specified by:
copyin interfaceFilteringObjective- Specified by:
copyin interfaceObjective- Returns:
- new builder
-
-