|
||||||||||
| 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
public abstract class AbstractCSQueue
| Constructor Summary | |
|---|---|
AbstractCSQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old)
|
|
| Method Summary | |
|---|---|
float |
getAbsActualCapacity()
Get actual capacity of the queue, this may be different from configured capacity when mis-config take place, like add labels to the cluster |
float |
getAbsoluteCapacity()
Get capacity of the parent of the queue as a function of the cumulative capacity in the cluster. |
float |
getAbsoluteCapacityByNodeLabel(String label)
Get absolute capacity by label of this queue can use |
float |
getAbsoluteMaximumCapacity()
Get maximum-capacity of the queue as a funciton of the cumulative capacity of the cluster. |
float |
getAbsoluteMaximumCapacityByNodeLabel(String label)
Get absolute max capacity by label of this queue can use |
float |
getAbsoluteUsedCapacity()
Get the current absolute used capacity of the queue relative to the entire cluster. |
Set<String> |
getAccessibleNodeLabels()
Get labels can be accessed of this queue labels={*}, means this queue can access any label labels={ }, means this queue cannot access any label except node without label labels={a, b, c} means this queue can access a or b or c |
Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> |
getACLs()
|
float |
getCapacity()
Get the configured capacity of the queue. |
float |
getCapacityByNodeLabel(String label)
Get capacity by node label |
String |
getDefaultNodeLabelExpression()
Get default label expression of this queue. |
org.apache.hadoop.yarn.api.records.Resource |
getMaximumAllocation()
|
float |
getMaximumCapacity()
Get the configured maximum-capacity of the queue. |
QueueMetrics |
getMetrics()
Get the queue metrics |
org.apache.hadoop.yarn.api.records.Resource |
getMinimumAllocation()
|
int |
getNumContainers()
|
CSQueue |
getParent()
Get the parent Queue. |
String |
getQueueName()
Get the queue name. |
boolean |
getReservationContinueLooking()
|
org.apache.hadoop.yarn.api.records.QueueState |
getState()
Get the current run-state of the queue |
float |
getUsedCapacity()
Get the current used capacity of nodes without label(s) of the queue and it's children (if any). |
org.apache.hadoop.yarn.api.records.Resource |
getUsedResources()
Get the currently utilized resources which allocated at nodes without any labels in the cluster by the queue and 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 |
protected void |
releaseResource(org.apache.hadoop.yarn.api.records.Resource clusterResource,
org.apache.hadoop.yarn.api.records.Resource resource,
Set<String> nodeLabels)
|
void |
setAbsoluteUsedCapacity(float absUsedCapacity)
Set absolute used capacity of the queue. |
void |
setParent(CSQueue newParentQueue)
Set the parent Queue. |
void |
setUsedCapacity(float usedCapacity)
Set used capacity of the queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CSQueue |
|---|
assignContainers, attachContainer, collectSchedulerApplications, completedContainer, detachContainer, finishApplication, finishApplicationAttempt, getActiveUsersManager, getChildQueues, getNumApplications, getQueuePath, reinitialize, submitApplication, submitApplicationAttempt, updateClusterResource |
| Methods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.Queue |
|---|
getQueueInfo, getQueueUserAclInfo, recoverContainer |
| Constructor Detail |
|---|
public AbstractCSQueue(CapacitySchedulerContext cs,
String queueName,
CSQueue parent,
CSQueue old)
throws IOException
IOException| Method Detail |
|---|
public float getCapacity()
CSQueue
getCapacity in interface CSQueuepublic float getAbsoluteCapacity()
CSQueue
getAbsoluteCapacity in interface CSQueuepublic float getAbsoluteMaximumCapacity()
CSQueue
getAbsoluteMaximumCapacity in interface CSQueuepublic float getAbsoluteUsedCapacity()
CSQueue
getAbsoluteUsedCapacity in interface CSQueuepublic float getMaximumCapacity()
CSQueue
getMaximumCapacity in interface CSQueuepublic float getUsedCapacity()
CSQueue
getUsedCapacity in interface CSQueuepublic org.apache.hadoop.yarn.api.records.Resource getUsedResources()
CSQueue
getUsedResources in interface CSQueuepublic int getNumContainers()
public org.apache.hadoop.yarn.api.records.QueueState getState()
CSQueue
getState in interface CSQueuepublic QueueMetrics getMetrics()
Queue
getMetrics in interface Queuepublic String getQueueName()
CSQueue
getQueueName in interface CSQueuegetQueueName in interface Queuepublic CSQueue getParent()
CSQueueQueue.
getParent in interface CSQueuepublic void setParent(CSQueue newParentQueue)
CSQueueQueue.
setParent in interface CSQueuenewParentQueue - new parent queuepublic Set<String> getAccessibleNodeLabels()
Queue
getAccessibleNodeLabels in interface Queue
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 CSQueuehasAccess in interface Queueacl - ACLuser - user
true if the user has the permission,
false otherwisepublic void setUsedCapacity(float usedCapacity)
CSQueue
setUsedCapacity in interface CSQueueusedCapacity - used capacity of the queuepublic void setAbsoluteUsedCapacity(float absUsedCapacity)
CSQueue
setAbsoluteUsedCapacity in interface CSQueueabsUsedCapacity - absolute used capacity of the queuepublic float getAbsActualCapacity()
CSQueue
getAbsActualCapacity in interface CSQueuepublic String getDefaultNodeLabelExpression()
Queue
getDefaultNodeLabelExpression in interface Queue@InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getMaximumAllocation()
@InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getMinimumAllocation()
protected void releaseResource(org.apache.hadoop.yarn.api.records.Resource clusterResource,
org.apache.hadoop.yarn.api.records.Resource resource,
Set<String> nodeLabels)
@InterfaceAudience.Private public float getCapacityByNodeLabel(String label)
CSQueue
getCapacityByNodeLabel in interface CSQueue@InterfaceAudience.Private public float getAbsoluteCapacityByNodeLabel(String label)
CSQueue
getAbsoluteCapacityByNodeLabel in interface CSQueue@InterfaceAudience.Private public float getAbsoluteMaximumCapacityByNodeLabel(String label)
CSQueue
getAbsoluteMaximumCapacityByNodeLabel in interface CSQueue@InterfaceAudience.Private public boolean getReservationContinueLooking()
@InterfaceAudience.Private public Map<org.apache.hadoop.yarn.api.records.QueueACL,org.apache.hadoop.security.authorize.AccessControlList> getACLs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||