@NotThreadSafe public final class MoveDefinition extends AbstractVoidJobDefinition<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.
|
Map<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 Map<WorkerInfo,SerializableVoid> selectExecutors(MoveConfig config, List<WorkerInfo> jobWorkerInfoList, SelectExecutorsContext context)
JobDefinition
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.