public interface Worker extends VitamAutoCloseable
| Modifier and Type | Method and Description |
|---|---|
Worker |
addActionHandler(String actionName,
ActionHandler actionHandler)
Constructor for test.
|
String |
getWorkerId()
get Worker Id
|
ItemStatus |
run(WorkerParameters workParams,
Step step)
Worker execute the step's actions
|
closeItemStatus run(WorkerParameters workParams, Step step) throws IllegalArgumentException, HandlerNotFoundException, ProcessingException, ContentAddressableStorageServerException
step - Step null not allowedworkParams - WorkerParameters (one and only workItem will be in workParams)EngineResponse : list of action response {OK,KO,FATAL...}IllegalArgumentException - throws when arguments are nullHandlerNotFoundException - throws when handler not foundProcessingException - throws when error in executionContentAddressableStorageServerException - thrown when workspace could not be usedWorker addActionHandler(String actionName, ActionHandler actionHandler)
actionName - action nameactionHandler - action handlerString getWorkerId()
Copyright © 2021 Vitam. All rights reserved.