public final class CompactDefinition extends AbstractVoidPlanDefinition<CompactConfig,java.util.ArrayList<CompactTask>>
| Constructor and Description |
|---|
CompactDefinition()
Constructs a new
CompactDefinition. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<CompactConfig> |
getJobConfigClass() |
SerializableVoid |
runTask(CompactConfig config,
java.util.ArrayList<CompactTask> tasks,
RunTaskContext context)
Runs the task in the executor.
|
java.util.Set<Pair<WorkerInfo,java.util.ArrayList<CompactTask>>> |
selectExecutors(CompactConfig config,
java.util.List<WorkerInfo> jobWorkers,
SelectExecutorsContext context)
Selects the workers to run the task.
|
joinpublic CompactDefinition()
CompactDefinition.public java.lang.Class<CompactConfig> getJobConfigClass()
JobConfigpublic java.util.Set<Pair<WorkerInfo,java.util.ArrayList<CompactTask>>> selectExecutors(CompactConfig config, java.util.List<WorkerInfo> jobWorkers, SelectExecutorsContext context) throws java.lang.Exception
PlanDefinitionconfig - the job configurationjobWorkers - the list of available workers' informationcontext - the context containing information used to select executorsjava.lang.Exception - if any error occurspublic SerializableVoid runTask(CompactConfig config, java.util.ArrayList<CompactTask> tasks, RunTaskContext context) throws java.lang.Exception
PlanDefinitionconfig - the job configurationtasks - the arguments passed incontext - the context containing information used to execute a taskjava.lang.Exception - if any error occursCopyright © 2022. All Rights Reserved.