public final class DefaultTrafficTreatment extends java.lang.Object implements TrafficTreatment
Modifier and Type | Class and Description |
---|---|
static class |
DefaultTrafficTreatment.Builder
Builds a list of treatments following the following order.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Instruction> |
allInstructions()
Returns the list of all instructions in the treatment, both immediate and
deferred.
|
static TrafficTreatment.Builder |
builder()
Returns a new traffic treatment builder.
|
static TrafficTreatment.Builder |
builder(TrafficTreatment treatment)
Returns a new traffic treatment builder primed to produce entities
patterned after the supplied treatment.
|
boolean |
clearedDeferred()
Whether the deferred treatment instructions will be cleared
by the device.
|
java.util.List<Instruction> |
deferred()
Returns the list of treatment instructions that will be applied
further down the pipeline.
|
static TrafficTreatment |
emptyTreatment()
Returns an empty traffic treatment.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.util.List<Instruction> |
immediate()
Returns the list of treatment instructions that will be applied
immediately.
|
Instructions.MeterInstruction |
metered()
Returns the meter instruction if there is one.
|
java.util.Set<Instructions.MeterInstruction> |
meters()
Returns the meter instructions if there is any.
|
Instructions.StatTriggerInstruction |
statTrigger()
Returns the stat trigger instruction if there is one.
|
Instructions.TableTypeTransition |
tableTransition()
Returns the next table in the pipeline.
|
java.lang.String |
toString() |
Instructions.MetadataInstruction |
writeMetadata()
Returns the metadata instruction if there is one.
|
public java.util.List<Instruction> deferred()
TrafficTreatment
deferred
in interface TrafficTreatment
public java.util.List<Instruction> immediate()
TrafficTreatment
immediate
in interface TrafficTreatment
public java.util.List<Instruction> allInstructions()
TrafficTreatment
allInstructions
in interface TrafficTreatment
public Instructions.TableTypeTransition tableTransition()
TrafficTreatment
tableTransition
in interface TrafficTreatment
public boolean clearedDeferred()
TrafficTreatment
clearedDeferred
in interface TrafficTreatment
public Instructions.MetadataInstruction writeMetadata()
TrafficTreatment
writeMetadata
in interface TrafficTreatment
public Instructions.StatTriggerInstruction statTrigger()
TrafficTreatment
statTrigger
in interface TrafficTreatment
public Instructions.MeterInstruction metered()
TrafficTreatment
metered
in interface TrafficTreatment
public java.util.Set<Instructions.MeterInstruction> meters()
TrafficTreatment
meters
in interface TrafficTreatment
public static TrafficTreatment.Builder builder()
public static TrafficTreatment emptyTreatment()
public static TrafficTreatment.Builder builder(TrafficTreatment treatment)
treatment
- base treatmentpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object