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
ConstructorDescriptionProcessEngineImpl
(WorkerParameters workerParameters, ProcessDistributor processDistributor, LogbookOperationsClientFactory logbookOperationsClientFactory, WorkspaceClientFactory workspaceClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setStateMachineCallback
(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:ProcessEngine
Set the state machine where the ProcessEngine return response on complete or on error- Specified by:
setStateMachineCallback
in interfaceProcessEngine
-
start
public CompletableFuture<ItemStatus> start(ProcessStep step, WorkerParameters workerParameters) throws ProcessingEngineException Description copied from interface:ProcessEngine
Start the execution of the given step- Specified by:
start
in interfaceProcessEngine
- Parameters:
step
- the ProcessStep objectworkerParameters
- the worker parameters- Returns:
- Throws:
ProcessingEngineException
- thrown if step could not be started
-