Class ExecutorBase<Input,Output>
java.lang.Object
org.chenile.orchestrator.process.utils.base.ExecutorBase<Input,Output>
- All Implemented Interfaces:
IWorker<Input>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.slf4j.Loggerprotected final ObjectMapper(package private) ProcessManagerClient -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
org.slf4j.Logger logger -
processManagerClient
-
objectMapper
-
-
Constructor Details
-
ExecutorBase
public ExecutorBase()
-
-
Method Details
-
start
-
doStart
Convert input to output. Throw an exception in cases of errors. Exception must extend ErrorNumException
CallprogressUpdate(String,int)progressUpdate} in case you want to update progress.- Parameters:
workerDto- - The Worker DTO to work withinput- - Converted into a Java object from JSON.- Returns:
- the output that will be sent back to the Process.
-
progressUpdate
-