|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ParentQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.PlanQueue
public class PlanQueue
This represents a dynamic queue managed by the ReservationSystem.
From the user perspective this is equivalent to a LeafQueue that respect
reservations, but functionality wise is a sub-class of ParentQueue
| Field Summary | |
|---|---|
static String |
DEFAULT_QUEUE_SUFFIX
|
protected CapacitySchedulerContext |
schedulerContext
|
| Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ParentQueue |
|---|
childQueues |
| Constructor Summary | |
|---|---|
PlanQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old)
|
|
| Method Summary | |
|---|---|
int |
getMaxApplicationsForReservations()
Number of maximum applications for each of the reservations in this Plan. |
int |
getMaxApplicationsPerUserForReservation()
Number of maximum applications per user for each of the reservations in this Plan. |
float |
getUserLimitFactor()
User limit factor value for each of the reservations in this Plan. |
int |
getUserLimitForReservation()
User limit value for each of the reservations in this Plan. |
void |
reinitialize(CSQueue newlyParsedQueue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
Reinitialize the queue. |
boolean |
showReservationsAsQueues()
Determine whether to hide/show the ReservationQueues |
protected float |
sumOfChildCapacities()
|
| Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ParentQueue |
|---|
assignContainers, attachContainer, collectSchedulerApplications, completedContainer, detachContainer, finishApplication, finishApplicationAttempt, getAbsActualCapacity, getActiveUsersManager, getChildQueues, getNumApplications, getQueueInfo, getQueuePath, getQueueUserAclInfo, recoverContainer, submitApplication, submitApplicationAttempt, toString, updateClusterResource |
| Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue |
|---|
getAbsoluteCapacity, getAbsoluteCapacityByNodeLabel, getAbsoluteMaximumCapacity, getAbsoluteMaximumCapacityByNodeLabel, getAbsoluteUsedCapacity, getAccessibleNodeLabels, getACLs, getCapacity, getCapacityByNodeLabel, getDefaultNodeLabelExpression, getMaximumAllocation, getMaximumCapacity, getMetrics, getMinimumAllocation, getNumContainers, getParent, getQueueName, getReservationContinueLooking, getState, getUsedCapacity, getUsedResources, hasAccess, releaseResource, setAbsoluteUsedCapacity, setParent, setUsedCapacity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_QUEUE_SUFFIX
protected CapacitySchedulerContext schedulerContext
| Constructor Detail |
|---|
public PlanQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old)
throws IOException
IOException| Method Detail |
|---|
public void reinitialize(CSQueue newlyParsedQueue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
throws IOException
CSQueue
reinitialize in interface CSQueuereinitialize in class ParentQueuenewlyParsedQueue - new queue to re-initalize fromclusterResource - resources in the cluster
IOExceptionprotected float sumOfChildCapacities()
public int getMaxApplicationsForReservations()
public int getMaxApplicationsPerUserForReservation()
public int getUserLimitForReservation()
public float getUserLimitFactor()
public boolean showReservationsAsQueues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||