Package fr.gouv.vitam.worker.core.api
Interface Worker
- All Superinterfaces:
AutoCloseable,VitamAutoCloseable
- All Known Implementing Classes:
WorkerImpl
Worker Interface.
-
Method Summary
Modifier and TypeMethodDescriptionaddActionHandler(String actionName, ActionHandler actionHandler) Constructor for test.get Worker Idrun(WorkerParameters workParams, Step step) Worker execute the step's actionsMethods inherited from interface fr.gouv.vitam.common.model.VitamAutoCloseable
close
-
Method Details
-
run
ItemStatus run(WorkerParameters workParams, Step step) throws IllegalArgumentException, ProcessingException Worker execute the step's actions- Parameters:
step-Stepnull not allowedworkParams-WorkerParameters(one and only workItem will be in workParams)- Returns:
- List EngineResponse
EngineResponse: list of action response {OK,KO,FATAL...} - Throws:
IllegalArgumentException- throws when arguments are nullProcessingException- throws when error in execution
-
addActionHandler
Constructor for test.- Parameters:
actionName- action nameactionHandler- action handler- Returns:
- the worker instance
-
getWorkerId
String getWorkerId()get Worker Id- Returns:
- id
-