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