public class NoopPlanDefinition extends AbstractVoidPlanDefinition<NoopPlanConfig,SerializableVoid>
Constructor and Description |
---|
NoopPlanDefinition()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
Class<NoopPlanConfig> |
getJobConfigClass() |
SerializableVoid |
runTask(NoopPlanConfig config,
SerializableVoid args,
RunTaskContext runTaskContext)
Runs the task in the executor.
|
Set<Pair<WorkerInfo,SerializableVoid>> |
selectExecutors(NoopPlanConfig config,
List<WorkerInfo> jobWorkerInfoList,
SelectExecutorsContext selectExecutorsContext)
Selects the workers to run the task.
|
join
public Class<NoopPlanConfig> getJobConfigClass()
JobConfig
public Set<Pair<WorkerInfo,SerializableVoid>> selectExecutors(NoopPlanConfig config, List<WorkerInfo> jobWorkerInfoList, SelectExecutorsContext selectExecutorsContext) throws Exception
PlanDefinition
config
- the job configurationjobWorkerInfoList
- the list of available workers' informationselectExecutorsContext
- the context containing information used to select executorsException
- if any error occurspublic SerializableVoid runTask(NoopPlanConfig config, SerializableVoid args, RunTaskContext runTaskContext) throws Exception
PlanDefinition
config
- the job configurationargs
- the arguments passed inrunTaskContext
- the context containing information used to execute a taskException
- if any error occursCopyright © 2023. All Rights Reserved.