@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class Schedulable extends Object
| Constructor and Description |
|---|
Schedulable() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.apache.hadoop.yarn.api.records.Resource |
assignContainer(FSSchedulerNode node)
Assign a container on this node if possible, and return the amount of
resources assigned.
|
abstract org.apache.hadoop.yarn.api.records.Resource |
getDemand()
Maximum number of resources required by this Schedulable.
|
org.apache.hadoop.yarn.api.records.Resource |
getFairShare()
Get the fair share assigned to this Schedulable.
|
abstract org.apache.hadoop.yarn.api.records.Resource |
getMaxShare()
Maximum Resource share assigned to the schedulable.
|
abstract org.apache.hadoop.yarn.api.records.Resource |
getMinShare()
Minimum Resource share assigned to the schedulable.
|
abstract String |
getName()
Name of job/queue, used for debugging as well as for breaking ties in
scheduling order deterministically.
|
abstract org.apache.hadoop.yarn.api.records.Priority |
getPriority()
Job priority for jobs in FIFO queues; meaningless for QueueSchedulables.
|
abstract org.apache.hadoop.yarn.api.records.Resource |
getResourceUsage()
Get the aggregate amount of resources consumed by the schedulable.
|
abstract long |
getStartTime()
Start time for jobs in FIFO queues; meaningless for QueueSchedulables.
|
abstract ResourceWeights |
getWeights()
Job/queue weight in fair sharing.
|
void |
setFairShare(org.apache.hadoop.yarn.api.records.Resource fairShare)
Assign a fair share to this Schedulable.
|
String |
toString()
Convenient toString implementation for debugging.
|
abstract void |
updateDemand()
Refresh the Schedulable's demand and those of its children if any.
|
public abstract String getName()
public abstract org.apache.hadoop.yarn.api.records.Resource getDemand()
public abstract org.apache.hadoop.yarn.api.records.Resource getResourceUsage()
public abstract org.apache.hadoop.yarn.api.records.Resource getMinShare()
public abstract org.apache.hadoop.yarn.api.records.Resource getMaxShare()
public abstract ResourceWeights getWeights()
public abstract long getStartTime()
public abstract org.apache.hadoop.yarn.api.records.Priority getPriority()
public abstract void updateDemand()
public abstract org.apache.hadoop.yarn.api.records.Resource assignContainer(FSSchedulerNode node)
public void setFairShare(org.apache.hadoop.yarn.api.records.Resource fairShare)
public org.apache.hadoop.yarn.api.records.Resource getFairShare()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.