Class ProcessEngineImpl
java.lang.Object
fr.gouv.vitam.processing.engine.core.ProcessEngineImpl
- All Implemented Interfaces:
ProcessEngine
ProcessEngineImpl class manages the context and call a process distributor
-
Constructor Summary
ConstructorsConstructorDescriptionProcessEngineImpl(WorkerParameters workerParameters, ProcessDistributor processDistributor, LogbookOperationsClientFactory logbookOperationsClientFactory, WorkspaceClientFactory workspaceClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetStateMachineCallback(IEventsProcessEngine stateMachineCallback) Set the state machine where the ProcessEngine return response on complete or on errorstart(ProcessStep step, WorkerParameters workerParameters) Start the execution of the given step
-
Constructor Details
-
ProcessEngineImpl
public ProcessEngineImpl(WorkerParameters workerParameters, ProcessDistributor processDistributor, LogbookOperationsClientFactory logbookOperationsClientFactory, WorkspaceClientFactory workspaceClientFactory)
-
-
Method Details
-
setStateMachineCallback
Description copied from interface:ProcessEngineSet the state machine where the ProcessEngine return response on complete or on error- Specified by:
setStateMachineCallbackin interfaceProcessEngine
-
start
public 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
-