public final class CompositeDefinition extends AbstractVoidJobDefinition<CompositeConfig,ArrayList<CompositeTask>>
CompositeConfig
.Constructor and Description |
---|
CompositeDefinition()
Constructs a new
CompositeDefinition . |
Modifier and Type | Method and Description |
---|---|
Class<CompositeConfig> |
getJobConfigClass() |
SerializableVoid |
runTask(CompositeConfig config,
ArrayList<CompositeTask> tasks,
RunTaskContext context)
Runs the task in the executor.
|
Map<WorkerInfo,ArrayList<CompositeTask>> |
selectExecutors(CompositeConfig config,
List<WorkerInfo> jobWorkers,
SelectExecutorsContext context)
Selects the workers to run the task.
|
join
public CompositeDefinition()
CompositeDefinition
.public Class<CompositeConfig> getJobConfigClass()
JobConfig
public Map<WorkerInfo,ArrayList<CompositeTask>> selectExecutors(CompositeConfig config, List<WorkerInfo> jobWorkers, SelectExecutorsContext context) throws Exception
JobDefinition
config
- the job configurationjobWorkers
- the list of available workers' informationcontext
- the context containing information used to select executorsException
- if any error occurspublic SerializableVoid runTask(CompositeConfig config, ArrayList<CompositeTask> tasks, RunTaskContext context) throws Exception
JobDefinition
config
- the job configurationtasks
- the arguments passed incontext
- the context containing information used to execute a taskException
- if any error occursCopyright © 2023. All Rights Reserved.