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, LogbookOperationsClientFactory logbookOperationsClientFactory, WorkspaceClientFactory workspaceClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetStateMachineCallback(IEventsProcessEngine stateMachineCallback)Set the state machine where the ProcessEngine return response on complete or on errorjava.util.concurrent.CompletableFuture<ItemStatus>start(ProcessStep step, WorkerParameters workerParameters)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, LogbookOperationsClientFactory logbookOperationsClientFactory, WorkspaceClientFactory workspaceClientFactory)
-
-
Method Detail
-
setStateMachineCallback
public void setStateMachineCallback(IEventsProcessEngine stateMachineCallback)
Description copied from interface:ProcessEngineSet the state machine where the ProcessEngine return response on complete or on error- Specified by:
setStateMachineCallbackin interfaceProcessEngine
-
start
public java.util.concurrent.CompletableFuture<ItemStatus> start(ProcessStep step, WorkerParameters workerParameters) throws ProcessingEngineException
Description copied from interface:ProcessEngineStart the execution of the given step- Specified by:
startin interfaceProcessEngine- Parameters:
step- the ProcessStep objectworkerParameters- the worker parameters- Returns:
- Throws:
ProcessingEngineException- thrown if step could not be started
-
-