Class ProcessingExecutionBuilder


  • public class ProcessingExecutionBuilder
    extends java.lang.Object
    Defines the p processing execution builder
    • Constructor Detail

      • ProcessingExecutionBuilder

        public ProcessingExecutionBuilder()
        Constructor for ProcessingExecutionBuilder
    • 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.IllegalArgumentException
        Validate the last processing unit class
        Throws:
        java.lang.IllegalArgumentException - In case of invalid processing unit class