Package org.onosproject.net
Class PipelineTraceableOutput.Builder
- java.lang.Object
-
- org.onosproject.net.PipelineTraceableOutput.Builder
-
- Enclosing class:
- PipelineTraceableOutput
public static final class PipelineTraceableOutput.Builder extends Object
Builder of pipeline traceable entities.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PipelineTraceableOutput.Builder
addHitChain(PipelineTraceableHitChain hitChain)
Stores the provided hit chain.PipelineTraceableOutput.Builder
appendToLog(String message)
Appends a message to the log.PipelineTraceableOutput
build()
Builds a new pipeline traceable output.PipelineTraceableOutput.Builder
dropped()
Sets dropped in the result.PipelineTraceableOutput.Builder
noFlows()
Sets no flows in the result.PipelineTraceableOutput.Builder
noGroups()
Sets no groups in the result.PipelineTraceableOutput.Builder
noMembers()
Sets no flows in the result.PipelineTraceableOutput.Builder
setResult(PipelineTraceableOutput.PipelineTraceableResult result)
-
-
-
Method Detail
-
appendToLog
public PipelineTraceableOutput.Builder appendToLog(String message)
Appends a message to the log.- Parameters:
message
- the log message to be appended- Returns:
- this builder
-
setResult
public PipelineTraceableOutput.Builder setResult(PipelineTraceableOutput.PipelineTraceableResult result)
-
noFlows
public PipelineTraceableOutput.Builder noFlows()
Sets no flows in the result.- Returns:
- this builder
-
noGroups
public PipelineTraceableOutput.Builder noGroups()
Sets no groups in the result.- Returns:
- this builder
-
noMembers
public PipelineTraceableOutput.Builder noMembers()
Sets no flows in the result.- Returns:
- this builder
-
dropped
public PipelineTraceableOutput.Builder dropped()
Sets dropped in the result.- Returns:
- this builder
-
addHitChain
public PipelineTraceableOutput.Builder addHitChain(PipelineTraceableHitChain hitChain)
Stores the provided hit chain.- Parameters:
hitChain
- the provided hit chain- Returns:
- this builder
-
build
public PipelineTraceableOutput build()
Builds a new pipeline traceable output.- Returns:
- a pipeline traceable object
-
-