Class ProcessEngineImpl
- java.lang.Object
-
- fr.gouv.vitam.processing.engine.core.ProcessEngineImpl
-
- All Implemented Interfaces:
ProcessEngine
public class ProcessEngineImpl extends java.lang.Object implements ProcessEngine
ProcessEngineImpl class manages the context and call a process distributor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDETAILS
-
Constructor Summary
Constructors Constructor Description ProcessEngineImpl(WorkerParameters workerParameters, ProcessDistributor processDistributor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(java.lang.String operationId)Cancel the execution of the current step Send message to the distributor to cancel the execution of the current stepbooleanpause(java.lang.String operationId)Pause the execution of the current step Send message to the distributor to cancel the execution of the current stepvoidsetCallback(IEventsProcessEngine callback)Set the state machine where the ProcessEngine return response on complete or on errorvoidstart(ProcessStep step, WorkerParameters workerParameters, PauseRecover pauseRecover)Start the execution of the given step
-
-
-
Field Detail
-
DETAILS
public static final java.lang.String DETAILS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProcessEngineImpl
public ProcessEngineImpl(WorkerParameters workerParameters, ProcessDistributor processDistributor)
-
-
Method Detail
-
setCallback
public void setCallback(IEventsProcessEngine callback)
Description copied from interface:ProcessEngineSet the state machine where the ProcessEngine return response on complete or on error- Specified by:
setCallbackin interfaceProcessEngine
-
pause
public boolean pause(java.lang.String operationId)
Description copied from interface:ProcessEnginePause the execution of the current step Send message to the distributor to cancel the execution of the current step- Specified by:
pausein interfaceProcessEngine- Parameters:
operationId- the operation identifier- Returns:
- true if pause applied, false else
-
cancel
public boolean cancel(java.lang.String operationId)
Description copied from interface:ProcessEngineCancel the execution of the current step Send message to the distributor to cancel the execution of the current step- Specified by:
cancelin interfaceProcessEngine- Parameters:
operationId- the operation identifier- Returns:
- true if pause applied, false else
-
start
public void start(ProcessStep step, WorkerParameters workerParameters, PauseRecover pauseRecover) throws ProcessingEngineException
Description copied from interface:ProcessEngineStart the execution of the given step- Specified by:
startin interfaceProcessEngine- Parameters:
step- the ProcessStep objectworkerParameters- the worker parameterspauseRecover- prevent recover from pause action- Throws:
ProcessingEngineException- thrown if step could not be started
-
-