Class AggregatorBase<Input, Output, ChildOutput>
java.lang.Object
org.chenile.orchestrator.process.utils.base.AggregatorBase<Input, Output, ChildOutput>
- Type Parameters:
Input- - The process.inputOutput- - The process.output
- All Implemented Interfaces:
IWorker<Input>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.Loggerprivate final ObjectMapper(package private) ProcessManagerClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract OutputdoStart(Output out, Input input, ChildOutput childOutput, WorkerDto workerDto, Process childProcess) This would be called once for each child process to create and progressively enhance the output from childOutput.protected voidprogressUpdate(String processId, int percent) void
-
Field Details
-
logger
private final org.slf4j.Logger logger -
processManagerClient
-
objectMapper
-
-
Constructor Details
-
AggregatorBase
public AggregatorBase()
-
-
Method Details
-
start
-
progressUpdate
-
doStart
protected abstract Output doStart(Output out, Input input, ChildOutput childOutput, WorkerDto workerDto, Process childProcess) This would be called once for each child process to create and progressively enhance the output from childOutput. In the first invocation, the out param below will be null. In subsequent invocations, the previous out is passed to this function.- Parameters:
out- - the output of the aggregation.input- - the input of this processchildOutput- - the child output of the current childworkerDto- - the worker DTO that was passed for the current process.childProcess- - the process descriptor for the child process- Returns:
-
CHENILE