@NotThreadSafe public final class SetReplicaDefinition extends AbstractVoidPlanDefinition<SetReplicaConfig,SetReplicaTask>
| Constructor and Description |
|---|
SetReplicaDefinition()
Constructs a new
SetReplicaDefinition. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<SetReplicaConfig> |
getJobConfigClass() |
SerializableVoid |
runTask(SetReplicaConfig config,
SetReplicaTask task,
RunTaskContext context)
Runs the task in the executor.
|
java.util.Set<Pair<WorkerInfo,SetReplicaTask>> |
selectExecutors(SetReplicaConfig config,
java.util.List<WorkerInfo> jobWorkerInfoList,
SelectExecutorsContext context)
Selects the workers to run the task.
|
joinpublic SetReplicaDefinition()
SetReplicaDefinition.public java.lang.Class<SetReplicaConfig> getJobConfigClass()
JobConfigpublic java.util.Set<Pair<WorkerInfo,SetReplicaTask>> selectExecutors(SetReplicaConfig config, java.util.List<WorkerInfo> jobWorkerInfoList, SelectExecutorsContext context) throws java.lang.Exception
PlanDefinitionconfig - 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(SetReplicaConfig config, SetReplicaTask task, RunTaskContext context) throws java.lang.Exception
config - the job configurationtask - the arguments passed incontext - the context containing information used to execute a taskjava.lang.Exception - if any error occursCopyright © 2022. All Rights Reserved.