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