Package org.apache.spark.scheduler
Interface Schedulable
public interface Schedulable
An interface for schedulable entities.
there are two type of Schedulable entities(Pools and TaskSetManagers)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSchedulable
(Schedulable schedulable) boolean
checkSpeculatableTasks
(long minTimeToSpeculation) void
executorDecommission
(String executorId) void
executorLost
(String executorId, String host, org.apache.spark.scheduler.ExecutorLossReason reason) getSchedulableByName
(String name) scala.collection.mutable.ArrayBuffer<org.apache.spark.scheduler.TaskSetManager>
boolean
int
minShare()
name()
org.apache.spark.scheduler.Pool
parent()
int
priority()
void
removeSchedulable
(Schedulable schedulable) int
scala.Enumeration.Value
int
stageId()
int
weight()
-
Method Details
-
addSchedulable
-
checkSpeculatableTasks
boolean checkSpeculatableTasks(long minTimeToSpeculation) -
executorDecommission
-
executorLost
-
getSchedulableByName
-
getSortedTaskSetQueue
scala.collection.mutable.ArrayBuffer<org.apache.spark.scheduler.TaskSetManager> getSortedTaskSetQueue() -
isSchedulable
boolean isSchedulable() -
name
String name() -
parent
org.apache.spark.scheduler.Pool parent() -
priority
int priority() -
removeSchedulable
-
runningTasks
int runningTasks() -
schedulableQueue
ConcurrentLinkedQueue<Schedulable> schedulableQueue() -
schedulingMode
scala.Enumeration.Value schedulingMode() -
stageId
int stageId() -
weight
int weight()
-