@NotThreadSafe public final class EvictDefinition extends AbstractVoidPlanDefinition<EvictConfig,SerializableVoid>
Constructor and Description |
---|
EvictDefinition()
Constructs a new
EvictDefinition . |
Modifier and Type | Method and Description |
---|---|
Class<EvictConfig> |
getJobConfigClass() |
SerializableVoid |
runTask(EvictConfig config,
SerializableVoid args,
RunTaskContext context)
Runs the task in the executor.
|
Set<Pair<WorkerInfo,SerializableVoid>> |
selectExecutors(EvictConfig config,
List<WorkerInfo> jobWorkerInfoList,
SelectExecutorsContext context)
Selects the workers to run the task.
|
join
public EvictDefinition()
EvictDefinition
.public Class<EvictConfig> getJobConfigClass()
JobConfig
public Set<Pair<WorkerInfo,SerializableVoid>> selectExecutors(EvictConfig 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(EvictConfig config, SerializableVoid args, RunTaskContext context) throws Exception
config
- the job configurationargs
- the arguments passed incontext
- the context containing information used to execute a taskException
- if any error occursCopyright © 2023. All Rights Reserved.