public class JobSchedulerImpl extends Object implements JobScheduler
| 构造器和说明 |
|---|
JobSchedulerImpl(JobMaster jobMaster) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<ExecutionVertex,JobWorkerContext> |
buildWorkersContext(ExecutionGraph executionGraph)
Build workers context.
|
boolean |
createWorkers(ExecutionGraph executionGraph)
Create JobWorker actors according to the physical plan.
|
boolean |
destroyWorkers(List<ExecutionVertex> executionVertices)
Destroy JobWorkers according to the vertex infos.
|
protected boolean |
initWorkers(Map<ExecutionVertex,JobWorkerContext> vertexToContextMap)
Init JobWorkers according to the vertex and context infos.
|
protected void |
prepareResourceAndCreateWorker(ExecutionGraph executionGraph)
Allocate job workers' resource then create job workers' actor.
|
boolean |
scheduleJob(ExecutionGraph executionGraph)
Schedule streaming job using the physical plan.
|
boolean |
startWorkers(ExecutionGraph executionGraph,
long checkpointId)
Start JobWorkers according to the physical plan.
|
public JobSchedulerImpl(JobMaster jobMaster)
public boolean scheduleJob(ExecutionGraph executionGraph)
JobSchedulerscheduleJob 在接口中 JobSchedulerexecutionGraph - physical planprotected void prepareResourceAndCreateWorker(ExecutionGraph executionGraph)
executionGraph - the physical planpublic boolean createWorkers(ExecutionGraph executionGraph)
executionGraph - physical planprotected boolean initWorkers(Map<ExecutionVertex,JobWorkerContext> vertexToContextMap)
vertexToContextMap - vertex - context mappublic boolean startWorkers(ExecutionGraph executionGraph, long checkpointId)
protected Map<ExecutionVertex,JobWorkerContext> buildWorkersContext(ExecutionGraph executionGraph)
executionGraph - execution graphpublic boolean destroyWorkers(List<ExecutionVertex> executionVertices)
executionVertices - specified verticesCopyright © 2022. All rights reserved.