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