public interface SchedulerBackend
Modifier and Type | Method and Description |
---|---|
String |
appId() |
scala.Option<String> |
applicationAttemptId()
Get the attempt ID for this run, if the cluster manager supports multiple
attempts.
|
String |
applicationId()
Get an application ID associated with the job.
|
int |
defaultParallelism() |
scala.Option<scala.collection.immutable.Map<String,String>> |
getDriverLogUrls()
Get the URLs for the driver logs.
|
boolean |
isReady() |
void |
killTask(long taskId,
String executorId,
boolean interruptThread,
String reason)
Requests that an executor kills a running task.
|
int |
maxNumConcurrentTasks()
Get the max number of tasks that can be concurrent launched currently.
|
void |
reviveOffers() |
void |
start() |
void |
stop() |
String appId()
scala.Option<String> applicationAttemptId()
String applicationId()
int defaultParallelism()
scala.Option<scala.collection.immutable.Map<String,String>> getDriverLogUrls()
boolean isReady()
void killTask(long taskId, String executorId, boolean interruptThread, String reason)
taskId
- Id of the task.executorId
- Id of the executor the task is running on.interruptThread
- Whether the executor should interrupt the task thread.reason
- The reason for the task kill.int maxNumConcurrentTasks()
void reviveOffers()
void start()
void stop()