public interface ITaskScheduler
Modifier and Type | Method and Description |
---|---|
void |
initialize(Config cfg)
Intialize the task scheduler with the configuration
|
void |
initialize(Config cfg,
int workerId)
Initialize with the worker id
|
TaskSchedulePlan |
schedule(ComputeGraph graph,
WorkerPlan workerPlan)
Schedule the task graph on the worker plan
|
void initialize(Config cfg)
cfg
- configuration objectvoid initialize(Config cfg, int workerId)
cfg
- configurationworkerId
- this worker idTaskSchedulePlan schedule(ComputeGraph graph, WorkerPlan workerPlan)
graph
- graphworkerPlan
- worker plan