@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class Schedulable extends Object
Constructor and Description |
---|
Schedulable() |
Modifier and Type | Method and Description |
---|---|
abstract Resource |
assignContainer(FSSchedulerNode node)
Assign a container on this node if possible, and return the amount of
resources assigned.
|
abstract Resource |
getDemand()
Maximum number of resources required by this Schedulable.
|
Resource |
getFairShare()
Get the fair share assigned to this Schedulable.
|
abstract Resource |
getMaxShare()
Maximum Resource share assigned to the schedulable.
|
abstract 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 Priority |
getPriority()
Job priority for jobs in FIFO queues; meaningless for QueueSchedulables.
|
abstract 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(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 Resource getDemand()
public abstract Resource getResourceUsage()
public abstract Resource getMinShare()
public abstract Resource getMaxShare()
public abstract ResourceWeights getWeights()
public abstract long getStartTime()
public abstract Priority getPriority()
public abstract void updateDemand()
public abstract Resource assignContainer(FSSchedulerNode node)
public void setFairShare(Resource fairShare)
public Resource getFairShare()
Copyright © 2013 Apache Software Foundation. All rights reserved.