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