@NotThreadSafe public final class BatchedJobDefinition extends AbstractVoidPlanDefinition<BatchedJobConfig,BatchedJobDefinition.BatchedJobTask>
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchedJobDefinition.BatchedJobTask
A task representing loading a block into the memory of a worker.
|
static class |
BatchedJobDefinition.JobDefinitionFactory
Factory class for get the specific job definition.
|
| Constructor and Description |
|---|
BatchedJobDefinition()
Constructs a new
BatchedJobDefinition. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<BatchedJobConfig> |
getJobConfigClass() |
SerializableVoid |
runTask(BatchedJobConfig config,
BatchedJobDefinition.BatchedJobTask task,
RunTaskContext context)
Runs the task in the executor.
|
java.util.Set<Pair<WorkerInfo,BatchedJobDefinition.BatchedJobTask>> |
selectExecutors(BatchedJobConfig config,
java.util.List<WorkerInfo> jobWorkerInfoList,
SelectExecutorsContext context)
Selects the workers to run the task.
|
joinpublic BatchedJobDefinition()
BatchedJobDefinition.public java.util.Set<Pair<WorkerInfo,BatchedJobDefinition.BatchedJobTask>> selectExecutors(BatchedJobConfig 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(BatchedJobConfig config, BatchedJobDefinition.BatchedJobTask task, RunTaskContext context) throws java.lang.Exception
PlanDefinitionconfig - the job configurationtask - the arguments passed incontext - the context containing information used to execute a taskjava.lang.Exception - if any error occurspublic java.lang.Class<BatchedJobConfig> getJobConfigClass()
JobConfigCopyright © 2022. All Rights Reserved.