public interface TaskScheduler
Modifier and Type | Method and Description |
---|---|
String |
appId() |
String |
applicationId()
Get an application ID associated with the job.
|
void |
cancelTasks(int stageId,
boolean interruptThread) |
int |
defaultParallelism() |
boolean |
executorHeartbeatReceived(String execId,
scala.Tuple2<Object,org.apache.spark.executor.TaskMetrics>[] taskMetrics,
BlockManagerId blockManagerId)
Update metrics for in-progress tasks and let the master know that the BlockManager is still
alive.
|
void |
postStartHook() |
Pool |
rootPool() |
scala.Enumeration.Value |
schedulingMode() |
void |
setDAGScheduler(DAGScheduler dagScheduler) |
void |
start() |
void |
stop() |
void |
submitTasks(TaskSet taskSet) |
String appId()
Pool rootPool()
scala.Enumeration.Value schedulingMode()
void start()
void postStartHook()
void stop()
void submitTasks(TaskSet taskSet)
void cancelTasks(int stageId, boolean interruptThread)
void setDAGScheduler(DAGScheduler dagScheduler)
int defaultParallelism()
boolean executorHeartbeatReceived(String execId, scala.Tuple2<Object,org.apache.spark.executor.TaskMetrics>[] taskMetrics, BlockManagerId blockManagerId)
String applicationId()