Package org.onosproject.net.pi.model
Class DefaultPiPipeconf.Builder
- java.lang.Object
-
- org.onosproject.net.pi.model.DefaultPiPipeconf.Builder
-
- Enclosing class:
- DefaultPiPipeconf
public static class DefaultPiPipeconf.Builder extends java.lang.Object
Builder of pipeconf implementations.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultPiPipeconf.Builder
addBehaviour(java.lang.Class<? extends Behaviour> clazz, java.lang.Class<? extends Behaviour> implementation)
Adds a behaviour to this pipeconf.DefaultPiPipeconf.Builder
addExtension(PiPipeconf.ExtensionType type, java.net.URL url)
Adds an extension to this pipeconf.PiPipeconf
build()
Creates a new pipeconf.DefaultPiPipeconf.Builder
withId(PiPipeconfId id)
Sets the identifier of this pipeconf.DefaultPiPipeconf.Builder
withPipelineModel(PiPipelineModel model)
Sets the pipeline model of this pipeconf.
-
-
-
Method Detail
-
withId
public DefaultPiPipeconf.Builder withId(PiPipeconfId id)
Sets the identifier of this pipeconf.- Parameters:
id
- pipeconf identifier- Returns:
- this
-
withPipelineModel
public DefaultPiPipeconf.Builder withPipelineModel(PiPipelineModel model)
Sets the pipeline model of this pipeconf.- Parameters:
model
- pipeline model- Returns:
- this
-
addBehaviour
public DefaultPiPipeconf.Builder addBehaviour(java.lang.Class<? extends Behaviour> clazz, java.lang.Class<? extends Behaviour> implementation)
Adds a behaviour to this pipeconf.- Parameters:
clazz
- behavior interface classimplementation
- behavior implementation class- Returns:
- this
-
addExtension
public DefaultPiPipeconf.Builder addExtension(PiPipeconf.ExtensionType type, java.net.URL url)
Adds an extension to this pipeconf.- Parameters:
type
- extension typeurl
- url pointing at the extension file- Returns:
- this
-
build
public PiPipeconf build()
Creates a new pipeconf.- Returns:
- pipeconf instance
-
-