Interface IProcessingUnitInstanceManager

    • Method Detail

      • createProcessingUnitInstance

        IProcessingUnit createProcessingUnitInstance​(java.lang.String id,
                                                     java.lang.String name,
                                                     java.lang.Class<? extends IProcessingUnit> processingUnitClass)
                                              throws ValidationException
        Create the processing unit implementation
        Parameters:
        id - the unique id of the processing
        name - the name of the processing
        processingUnitClass - the class
        Returns:
        the instance
        Throws:
        ValidationException - If the instance of the processing unit cannot be initialized correctly
      • createParallelProcessingUnitInstance

        IProcessingUnit createParallelProcessingUnitInstance​(java.lang.String id,
                                                             java.lang.String name,
                                                             java.lang.Class<? extends IProcessingUnit> processingUnitClass)
                                                      throws ValidationException
        Create the parallel processing unit implementation
        Parameters:
        id - the unique id of the processing
        name - the name of the processing
        processingUnitClass - the class
        Returns:
        the instance
        Throws:
        ValidationException - If the instance of the processing unit cannot be initialized correctly
      • releaseResource

        void releaseResource​(java.lang.String id,
                             java.lang.String name,
                             IProcessingUnit processingUnit)
        Release resource
        Parameters:
        id - the unique id of the processing
        name - the name of the processing
        processingUnit - the processing unit