Class ProcessingExecutionBuilder
- java.lang.Object
-
- com.github.toolarium.processing.engine.impl.executer.ProcessingExecutionBuilder
-
public class ProcessingExecutionBuilder extends java.lang.ObjectDefines the p processing execution builder
-
-
Constructor Summary
Constructors Constructor Description ProcessingExecutionBuilder()Constructor for ProcessingExecutionBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ProcessingUnitReference>build()BuildProcessingExecutionBuilderid(java.lang.String id)Set the processing unit execution idProcessingExecutionBuildername(java.lang.String name)Set the processing unit execution nameProcessingExecutionBuildernewProcessingUnit()Start a new processing unit execution dependencyProcessingExecutionBuilderparameter(com.github.toolarium.processing.unit.dto.Parameter parameter)Set the processing unit execution parameterProcessingExecutionBuilderparameters(com.github.toolarium.processing.unit.dto.Parameter... parameters)Set the processing unit execution parametersProcessingExecutionBuilderprocessingUnitClass(java.lang.Class<? extends com.github.toolarium.processing.unit.IProcessingUnit> processingUnitClass)Set the processing unit execution nameProcessingExecutionBuilderprocessingUnitClass(java.lang.String className)Set the processing unit execution nameprotected voidvalidateProcessingUnitClass()Validate the last processing unit class
-
-
-
Method Detail
-
id
public ProcessingExecutionBuilder id(java.lang.String id)
Set the processing unit execution id- Parameters:
id- the processing unit execution id- Returns:
- the builder
-
name
public ProcessingExecutionBuilder name(java.lang.String name)
Set the processing unit execution name- Parameters:
name- the processing unit execution name- Returns:
- the builder
-
processingUnitClass
public ProcessingExecutionBuilder processingUnitClass(java.lang.String className) throws java.lang.ClassNotFoundException
Set the processing unit execution name- Parameters:
className- the processing unit class name- Returns:
- the builder
- Throws:
java.lang.ClassNotFoundException- In case the class can not be resolved
-
processingUnitClass
public ProcessingExecutionBuilder processingUnitClass(java.lang.Class<? extends com.github.toolarium.processing.unit.IProcessingUnit> processingUnitClass) throws java.lang.IllegalArgumentException
Set the processing unit execution name- Parameters:
processingUnitClass- the processing unit class- Returns:
- the builder
- Throws:
java.lang.IllegalArgumentException- In case of invalid processing unit class
-
parameter
public ProcessingExecutionBuilder parameter(com.github.toolarium.processing.unit.dto.Parameter parameter)
Set the processing unit execution parameter- Parameters:
parameter- the parameter to add- Returns:
- the builder
-
parameters
public ProcessingExecutionBuilder parameters(com.github.toolarium.processing.unit.dto.Parameter... parameters)
Set the processing unit execution parameters- Parameters:
parameters- the parameters to add- Returns:
- the builder
-
newProcessingUnit
public ProcessingExecutionBuilder newProcessingUnit() throws java.lang.IllegalArgumentException
Start a new processing unit execution dependency- Returns:
- the builder
- Throws:
java.lang.IllegalArgumentException- In case of invalid processing unit class
-
build
public java.util.List<ProcessingUnitReference> build() throws java.lang.IllegalArgumentException
Build- Returns:
- the list of processing unit executions
- Throws:
java.lang.IllegalArgumentException- In case of invalid processing unit class
-
validateProcessingUnitClass
protected void validateProcessingUnitClass() throws java.lang.IllegalArgumentExceptionValidate the last processing unit class- Throws:
java.lang.IllegalArgumentException- In case of invalid processing unit class
-
-