public class WorkerLifecycleController extends Object
| Constructor and Description |
|---|
WorkerLifecycleController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createWorkers(List<ExecutionVertex> executionVertices) |
boolean |
destroyWorkers(List<ExecutionVertex> executionVertices)
Stop and destroy JobWorkers' actor.
|
boolean |
initWorkers(Map<ExecutionVertex,JobWorkerContext> vertexToContextMap,
int timeout)
Using context to init JobWorker.
|
boolean |
startWorkers(ExecutionGraph executionGraph,
long lastCheckpointId,
int timeout)
Start JobWorkers to run task.
|
public boolean createWorkers(List<ExecutionVertex> executionVertices)
public boolean initWorkers(Map<ExecutionVertex,JobWorkerContext> vertexToContextMap, int timeout)
vertexToContextMap - target JobWorker actortimeout - timeout for waiting, unit: mspublic boolean startWorkers(ExecutionGraph executionGraph, long lastCheckpointId, int timeout)
executionGraph - physical plantimeout - timeout for waiting, unit: mspublic boolean destroyWorkers(List<ExecutionVertex> executionVertices)
executionVertices - target verticesCopyright © 2021. All rights reserved.