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 SummaryModifier and TypeMethodDescriptionvoidaddSchedulable(Schedulable schedulable) booleancheckSpeculatableTasks(long minTimeToSpeculation) voidexecutorDecommission(String executorId) voidexecutorLost(String executorId, String host, org.apache.spark.scheduler.ExecutorLossReason reason) getSchedulableByName(String name) scala.collection.mutable.ArrayBuffer<org.apache.spark.scheduler.TaskSetManager>booleanintminShare()name()org.apache.spark.scheduler.Poolparent()intpriority()voidremoveSchedulable(Schedulable schedulable) intscala.Enumeration.ValueintstageId()intweight()
- 
Method Details- 
addSchedulable
- 
checkSpeculatableTasksboolean checkSpeculatableTasks(long minTimeToSpeculation) 
- 
executorDecommission
- 
executorLost
- 
getSchedulableByName
- 
getSortedTaskSetQueuescala.collection.mutable.ArrayBuffer<org.apache.spark.scheduler.TaskSetManager> getSortedTaskSetQueue()
- 
isSchedulableboolean isSchedulable()
- 
nameString name()
- 
parentorg.apache.spark.scheduler.Pool parent()
- 
priorityint priority()
- 
removeSchedulable
- 
runningTasksint runningTasks()
- 
schedulableQueueConcurrentLinkedQueue<Schedulable> schedulableQueue()
- 
schedulingModescala.Enumeration.Value schedulingMode()
- 
stageIdint stageId()
- 
weightint weight()
 
-