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