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()
TrafficTreatmentdeferred in interface TrafficTreatmentpublic java.util.List<Instruction> immediate()
TrafficTreatmentimmediate in interface TrafficTreatmentpublic java.util.List<Instruction> allInstructions()
TrafficTreatmentallInstructions in interface TrafficTreatmentpublic Instructions.TableTypeTransition tableTransition()
TrafficTreatmenttableTransition in interface TrafficTreatmentpublic boolean clearedDeferred()
TrafficTreatmentclearedDeferred in interface TrafficTreatmentpublic Instructions.MetadataInstruction writeMetadata()
TrafficTreatmentwriteMetadata in interface TrafficTreatmentpublic Instructions.StatTriggerInstruction statTrigger()
TrafficTreatmentstatTrigger in interface TrafficTreatmentpublic Instructions.MeterInstruction metered()
TrafficTreatmentmetered in interface TrafficTreatmentpublic java.util.Set<Instructions.MeterInstruction> meters()
TrafficTreatmentmeters in interface TrafficTreatmentpublic 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.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object