public final class CompactDefinition extends AbstractVoidPlanDefinition<CompactConfig,ArrayList<CompactTask>>
Constructor and Description |
---|
CompactDefinition()
Constructs a new
CompactDefinition . |
Modifier and Type | Method and Description |
---|---|
Class<CompactConfig> |
getJobConfigClass() |
SerializableVoid |
runTask(CompactConfig config,
ArrayList<CompactTask> tasks,
RunTaskContext context)
Runs the task in the executor.
|
Set<Pair<WorkerInfo,ArrayList<CompactTask>>> |
selectExecutors(CompactConfig config,
List<WorkerInfo> jobWorkers,
SelectExecutorsContext context)
Selects the workers to run the task.
|
join
public CompactDefinition()
CompactDefinition
.public Class<CompactConfig> getJobConfigClass()
JobConfig
public Set<Pair<WorkerInfo,ArrayList<CompactTask>>> selectExecutors(CompactConfig config, List<WorkerInfo> jobWorkers, SelectExecutorsContext context) throws Exception
PlanDefinition
config
- the job configurationjobWorkers
- the list of available workers' informationcontext
- the context containing information used to select executorsException
- if any error occurspublic SerializableVoid runTask(CompactConfig config, ArrayList<CompactTask> tasks, RunTaskContext context) throws Exception
PlanDefinition
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.