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