Interface IProcessingUnitProxy
-
- All Known Implementing Classes:
ProcessingUnitProxy
public interface IProcessingUnitProxyDefines theIProcessingUnitproxy. It manages the full handling for startup, possible suspends/resumes and ending even the validation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ParameterDefinition>getParameterDefinition()Gets the parameter definition list of the processing.IProcessStatusgetProcessStatus()Gets the last process statusbooleanprocessUnit()Process unit: This method will be called until theIProcessStatus.hasNext()returns false or an exception occurs: RuntimeException will abort; ValidationException or ProcessingException depends on the value returned by the method abortProcessing.voidreleaseResource()Release resources will be called to release all internal referenced resources after a processing success, error or by asuspendProcessing(see method below).byte[]suspendProcessing()Suspends the processing: The processing is able to persist its state with the help of theIProcessingPersistenceobject.
-
-
-
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 theIProcessStatus.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 ProcessingExceptionSuspends the processing: The processing is able to persist its state with the help of theIProcessingPersistenceobject. On a resume this instance of theIProcessingPersistencewill 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 ProcessingExceptionRelease resources will be called to release all internal referenced resources after a processing success, error or by asuspendProcessing(see method below). It will be called afteronSuccessoronStop.- Throws:
ProcessingException- Throws this exception in case of releasing failure.
-
-