|
||||||||||
| 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.LeafQueue
@InterfaceAudience.Private @InterfaceStability.Unstable public class LeafQueue
| Constructor Summary | |
|---|---|
LeafQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
Comparator<SchedulerApp> applicationComparator,
CSQueue old)
|
|
| Method Summary | |
|---|---|
CSAssignment |
assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerNode node)
Assign containers to applications in the queue or it's children (if any). |
void |
completedContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApp application,
SchedulerNode node,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event)
A container assigned to the queue has completed. |
org.apache.hadoop.yarn.api.records.Container |
createContainer(SchedulerApp application,
SchedulerNode node,
org.apache.hadoop.yarn.api.records.Resource capability,
org.apache.hadoop.yarn.api.records.Priority priority)
|
void |
finishApplication(SchedulerApp application,
String queue)
An application submitted to this queue has finished. |
float |
getAbsoluteCapacity()
Get capacity of the parent of the queue as a function of the cumulative capacity in the cluster. |
float |
getAbsoluteMaximumCapacity()
Get maximum-capacity of the queue as a funciton of the cumulative capacity of the cluster. |
ActiveUsersManager |
getActiveUsersManager()
Get the ActiveUsersManager for the queue. |
float |
getCapacity()
Get the configured capacity of the queue. |
List<CSQueue> |
getChildQueues()
Get child queues |
int |
getMaxApplications()
|
int |
getMaxApplicationsPerUser()
|
int |
getMaximumActiveApplications()
|
int |
getMaximumActiveApplicationsPerUser()
|
org.apache.hadoop.yarn.api.records.Resource |
getMaximumAllocation()
Used only by tests. |
float |
getMaximumCapacity()
Get the configured maximum-capacity of the queue. |
QueueMetrics |
getMetrics()
Get the queue metrics |
org.apache.hadoop.yarn.api.records.Resource |
getMinimumAllocation()
Used only by tests. |
float |
getMinimumAllocationFactor()
Used only by tests. |
int |
getNumActiveApplications()
|
int |
getNumActiveApplications(String user)
|
int |
getNumApplications()
Get the number of applications in the queue. |
int |
getNumApplications(String user)
|
int |
getNumContainers()
|
int |
getNumPendingApplications()
|
int |
getNumPendingApplications(String user)
|
CSQueue |
getParent()
Get the parent Queue. |
Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> |
getQueueAcls()
Get ACLs for the queue. |
org.apache.hadoop.yarn.api.records.QueueInfo |
getQueueInfo(boolean includeChildQueues,
boolean recursive)
Get queue information |
String |
getQueueName()
Get the queue name. |
String |
getQueuePath()
Get the full name of the queue, including the heirarchy. |
List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> |
getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Get queue ACLs for given user. |
org.apache.hadoop.yarn.api.records.QueueState |
getState()
Get the current run-state of the queue |
float |
getUsedCapacity()
Get the currently utilized capacity of the queue relative to it's parent queue. |
org.apache.hadoop.yarn.api.records.Resource |
getUsedResources()
Get the currently utilized resources in the cluster by the queue and children (if any). |
int |
getUserLimit()
|
float |
getUserLimitFactor()
|
float |
getUtilization()
Get the current utilization of the queue and it's children (if any). |
boolean |
hasAccess(org.apache.hadoop.yarn.api.records.QueueACL acl,
org.apache.hadoop.security.UserGroupInformation user)
Check if the user has permission to perform the operation |
void |
recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApp application,
org.apache.hadoop.yarn.api.records.Container container)
Recover the state of the queue |
void |
reinitialize(CSQueue queue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
Reinitialize the queue. |
void |
removeApplication(SchedulerApp application,
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.User user)
|
void |
setUsedCapacity(float usedCapacity)
Set used capacity of the queue. |
void |
setUtilization(float utilization)
Get the current utilization of the queue. |
void |
submitApplication(SchedulerApp application,
String userName,
String queue)
Submit a new application to the queue. |
String |
toString()
|
void |
updateClusterResource(org.apache.hadoop.yarn.api.records.Resource clusterResource)
Update the cluster resource for queues as we add/remove nodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LeafQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
Comparator<SchedulerApp> applicationComparator,
CSQueue old)
| Method Detail |
|---|
public float getCapacity()
CSQueue
getCapacity in interface CSQueuepublic float getAbsoluteCapacity()
CSQueue
getAbsoluteCapacity in interface CSQueuepublic float getMaximumCapacity()
CSQueue
getMaximumCapacity in interface CSQueuepublic float getAbsoluteMaximumCapacity()
CSQueue
getAbsoluteMaximumCapacity in interface CSQueuepublic CSQueue getParent()
CSQueueQueue.
getParent in interface CSQueuepublic String getQueueName()
CSQueue
getQueueName in interface CSQueuegetQueueName in interface Queuepublic String getQueuePath()
CSQueue
getQueuePath in interface CSQueue@InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getMinimumAllocation()
@InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getMaximumAllocation()
@InterfaceAudience.Private public float getMinimumAllocationFactor()
public int getMaxApplications()
public int getMaxApplicationsPerUser()
public int getMaximumActiveApplications()
public int getMaximumActiveApplicationsPerUser()
public ActiveUsersManager getActiveUsersManager()
CSQueueActiveUsersManager for the queue.
getActiveUsersManager in interface CSQueueActiveUsersManager for the queuepublic float getUsedCapacity()
CSQueue
getUsedCapacity in interface CSQueuepublic org.apache.hadoop.yarn.api.records.Resource getUsedResources()
CSQueue
getUsedResources in interface CSQueuepublic float getUtilization()
CSQueue
getUtilization in interface CSQueuepublic List<CSQueue> getChildQueues()
CSQueue
getChildQueues in interface CSQueuepublic void setUtilization(float utilization)
CSQueue
setUtilization in interface CSQueueutilization - queue utilizationpublic void setUsedCapacity(float usedCapacity)
CSQueue
setUsedCapacity in interface CSQueueusedCapacity - used capacity of the queuepublic int getNumApplications()
CSQueue
getNumApplications in interface CSQueuepublic int getNumPendingApplications()
public int getNumActiveApplications()
@InterfaceAudience.Private public int getNumApplications(String user)
@InterfaceAudience.Private public int getNumPendingApplications(String user)
@InterfaceAudience.Private public int getNumActiveApplications(String user)
public int getNumContainers()
public org.apache.hadoop.yarn.api.records.QueueState getState()
CSQueue
getState in interface CSQueue@InterfaceAudience.Private public int getUserLimit()
@InterfaceAudience.Private public float getUserLimitFactor()
public Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> getQueueAcls()
Queue
getQueueAcls in interface Queue
public org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(boolean includeChildQueues,
boolean recursive)
Queue
getQueueInfo in interface QueueincludeChildQueues - include child queues?recursive - recursively get child queue information?
public List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queueuser.
getQueueUserAclInfo in interface Queueuser - username
public String toString()
toString in class Object
public void reinitialize(CSQueue queue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
throws IOException
CSQueue
reinitialize in interface CSQueuequeue - new queue to re-initalize fromclusterResource - resources in the cluster
IOException
public boolean hasAccess(org.apache.hadoop.yarn.api.records.QueueACL acl,
org.apache.hadoop.security.UserGroupInformation user)
CSQueueuser has permission to perform the operation
hasAccess in interface CSQueueacl - ACLuser - user
true if the user has the permission,
false otherwise
public void submitApplication(SchedulerApp application,
String userName,
String queue)
throws org.apache.hadoop.security.AccessControlException
CSQueue
submitApplication in interface CSQueueapplication - application being submitteduserName - user who submitted the applicationqueue - queue to which the application is submitted
org.apache.hadoop.security.AccessControlException
public void finishApplication(SchedulerApp application,
String queue)
CSQueue
finishApplication in interface CSQueuequeue - application queue
public void removeApplication(SchedulerApp application,
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.User user)
public CSAssignment assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerNode node)
CSQueue
assignContainers in interface CSQueueclusterResource - the resource of the cluster.node - node on which resources are available
public org.apache.hadoop.yarn.api.records.Container createContainer(SchedulerApp application,
SchedulerNode node,
org.apache.hadoop.yarn.api.records.Resource capability,
org.apache.hadoop.yarn.api.records.Priority priority)
public void completedContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApp application,
SchedulerNode node,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event)
CSQueue
completedContainer in interface CSQueueclusterResource - the resource of the clusterapplication - application to which the container was assignednode - node on which the container completedrmContainer - completed container,
null if it was just a reservationcontainerStatus - ContainerStatus for the completed
containerevent - event to be sent to the containerpublic void updateClusterResource(org.apache.hadoop.yarn.api.records.Resource clusterResource)
CSQueue
updateClusterResource in interface CSQueueclusterResource - the current cluster resourcepublic QueueMetrics getMetrics()
Queue
getMetrics in interface Queue
public void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApp application,
org.apache.hadoop.yarn.api.records.Container container)
CSQueue
recoverContainer in interface CSQueueclusterResource - the resource of the clusterapplication - the application for which the container was allocatedcontainer - the container that was recovered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||