Interface IProcessingUnitProxy

  • All Known Implementing Classes:
    ProcessingUnitProxy

    public interface IProcessingUnitProxy
    Defines the IProcessingUnit proxy. It manages the full handling for startup, possible suspends/resumes and ending even the validation.
    • Method Detail

      • getParameterDefinition

        java.util.List<ParameterDefinition> getParameterDefinition()
        Gets the parameter definition list of the processing.
        Returns:
        the parameter definition list or null in case of no parameters
      • getProcessStatus

        IProcessStatus getProcessStatus()
        Gets the last process status
        Returns:
        the last process status
      • processUnit

        boolean processUnit()
        Process unit: This method will be called until the IProcessStatus.hasNext() returns false or an exception occurs: RuntimeException will abort; ValidationException or ProcessingException depends on the value returned by the method abortProcessing. Important: this method have to process the sequential or in a small block size.
        Returns:
        true to continue the processing; otherwise false
      • suspendProcessing

        byte[] suspendProcessing()
                          throws ProcessingException
        Suspends the processing: The processing is able to persist its state with the help of the IProcessingPersistence object. On a resume this instance of the IProcessingPersistence will be returned (see method below).
        Returns:
        the processing persistence which contains all information to resume processing later (see resumeProcessing).
        Throws:
        ProcessingException - Throws this exception in case of while suspend the processing any failures occurs.
      • releaseResource

        void releaseResource()
                      throws ProcessingException
        Release resources will be called to release all internal referenced resources after a processing success, error or by a suspendProcessing (see method below). It will be called after onSuccess or onStop.
        Throws:
        ProcessingException - Throws this exception in case of releasing failure.