public class Pool extends Object implements Schedulable, Logging
| Constructor and Description |
|---|
Pool(String poolName,
scala.Enumeration.Value schedulingMode,
int initMinShare,
int initWeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSchedulable(Schedulable schedulable) |
boolean |
checkSpeculatableTasks() |
void |
decreaseRunningTasks(int taskNum) |
void |
executorLost(String executorId,
String host) |
Schedulable |
getSchedulableByName(String schedulableName) |
scala.collection.mutable.ArrayBuffer<TaskSetManager> |
getSortedTaskSetQueue() |
void |
increaseRunningTasks(int taskNum) |
int |
minShare() |
String |
name() |
Pool |
parent() |
String |
poolName() |
int |
priority() |
void |
removeSchedulable(Schedulable schedulable) |
int |
runningTasks() |
java.util.concurrent.ConcurrentHashMap<String,Schedulable> |
schedulableNameToSchedulable() |
java.util.concurrent.ConcurrentLinkedQueue<Schedulable> |
schedulableQueue() |
scala.Enumeration.Value |
schedulingMode() |
int |
stageId() |
SchedulingAlgorithm |
taskSetSchedulingAlgorithm() |
int |
weight() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic Pool(String poolName,
scala.Enumeration.Value schedulingMode,
int initMinShare,
int initWeight)
public String poolName()
public scala.Enumeration.Value schedulingMode()
schedulingMode in interface Schedulablepublic java.util.concurrent.ConcurrentLinkedQueue<Schedulable> schedulableQueue()
schedulableQueue in interface Schedulablepublic java.util.concurrent.ConcurrentHashMap<String,Schedulable> schedulableNameToSchedulable()
public int weight()
weight in interface Schedulablepublic int minShare()
minShare in interface Schedulablepublic int runningTasks()
runningTasks in interface Schedulablepublic int priority()
priority in interface Schedulablepublic int stageId()
stageId in interface Schedulablepublic String name()
name in interface Schedulablepublic Pool parent()
parent in interface Schedulablepublic SchedulingAlgorithm taskSetSchedulingAlgorithm()
public void addSchedulable(Schedulable schedulable)
addSchedulable in interface Schedulablepublic void removeSchedulable(Schedulable schedulable)
removeSchedulable in interface Schedulablepublic Schedulable getSchedulableByName(String schedulableName)
getSchedulableByName in interface Schedulablepublic void executorLost(String executorId,
String host)
executorLost in interface Schedulablepublic boolean checkSpeculatableTasks()
checkSpeculatableTasks in interface Schedulablepublic scala.collection.mutable.ArrayBuffer<TaskSetManager> getSortedTaskSetQueue()
getSortedTaskSetQueue in interface Schedulablepublic void increaseRunningTasks(int taskNum)
public void decreaseRunningTasks(int taskNum)