public class DataLocalityBatchTaskScheduler extends java.lang.Object implements ITaskScheduler
Constructor and Description |
---|
DataLocalityBatchTaskScheduler() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Config cfg)
This method first initialize the task instance values with default task instance ram, disk, and
cpu values from the task scheduler context.
|
void |
initialize(Config cfg,
int workerid)
Initialize with the worker id
|
TaskSchedulePlan |
schedule(ComputeGraph graph,
WorkerPlan workerPlan)
This is the base method for the data locality aware task scheduling for scheduling the batch
task instances.
|
public void initialize(Config cfg)
initialize
in interface ITaskScheduler
cfg
- configuration objectpublic void initialize(Config cfg, int workerid)
ITaskScheduler
initialize
in interface ITaskScheduler
cfg
- configurationworkerid
- this worker idpublic TaskSchedulePlan schedule(ComputeGraph graph, WorkerPlan workerPlan)
schedule
in interface ITaskScheduler
graph
- graphworkerPlan
- worker plan