|
||||||||||
| 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.SchedulerApp
public class SchedulerApp
Represents an Application from the viewpoint of the scheduler. Each running Application in the RM corresponds to one instance of this class.
| Constructor Summary | |
|---|---|
SchedulerApp(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
String user,
Queue queue,
ActiveUsersManager activeUsersManager,
RMContext rmContext,
ApplicationsStore.ApplicationStore store)
|
|
| Method Summary | |
|---|---|
void |
addSchedulingOpportunity(org.apache.hadoop.yarn.api.records.Priority priority)
|
RMContainer |
allocate(NodeType type,
SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ResourceRequest request,
org.apache.hadoop.yarn.api.records.Container container)
|
void |
containerCompleted(RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event)
|
void |
containerLaunchedOnNode(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId)
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId()
|
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId()
|
org.apache.hadoop.yarn.api.records.Resource |
getCurrentConsumption()
|
org.apache.hadoop.yarn.api.records.Resource |
getCurrentReservation()
Get total current reservations. |
org.apache.hadoop.yarn.api.records.Resource |
getHeadroom()
Get available headroom in terms of resources for the application's user. |
Collection<RMContainer> |
getLiveContainers()
Get the list of live containers |
float |
getLocalityWaitFactor(org.apache.hadoop.yarn.api.records.Priority priority,
int clusterNodes)
|
int |
getNewContainerId()
|
int |
getNumReservedContainers(org.apache.hadoop.yarn.api.records.Priority priority)
|
Collection<org.apache.hadoop.yarn.api.records.Priority> |
getPriorities()
|
Queue |
getQueue()
|
String |
getQueueName()
|
int |
getReReservations(org.apache.hadoop.yarn.api.records.Priority priority)
|
List<RMContainer> |
getReservedContainers()
Get the list of reserved containers |
org.apache.hadoop.yarn.api.records.Resource |
getResource(org.apache.hadoop.yarn.api.records.Priority priority)
|
org.apache.hadoop.yarn.api.records.ResourceRequest |
getResourceRequest(org.apache.hadoop.yarn.api.records.Priority priority,
String nodeAddress)
|
Map<String,org.apache.hadoop.yarn.api.records.ResourceRequest> |
getResourceRequests(org.apache.hadoop.yarn.api.records.Priority priority)
|
RMContainer |
getRMContainer(org.apache.hadoop.yarn.api.records.ContainerId id)
|
int |
getSchedulingOpportunities(org.apache.hadoop.yarn.api.records.Priority priority)
Return the number of times the application has been given an opportunity to schedule a task at the given priority since the last time it successfully did so. |
int |
getTotalRequiredResources(org.apache.hadoop.yarn.api.records.Priority priority)
|
String |
getUser()
|
boolean |
isPending()
Is this application pending? |
boolean |
isReserved(SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority)
Has the application reserved the given node at the
given priority? |
List<org.apache.hadoop.yarn.api.records.Container> |
pullNewlyAllocatedContainers()
|
RMContainer |
reserve(SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.Container container)
|
void |
resetSchedulingOpportunities(org.apache.hadoop.yarn.api.records.Priority priority)
|
void |
setHeadroom(org.apache.hadoop.yarn.api.records.Resource globalLimit)
|
void |
showRequests()
|
void |
stop(RMAppAttemptState rmAppAttemptFinalState)
|
void |
unreserve(SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority)
|
void |
updateResourceRequests(List<org.apache.hadoop.yarn.api.records.ResourceRequest> requests)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchedulerApp(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
String user,
Queue queue,
ActiveUsersManager activeUsersManager,
RMContext rmContext,
ApplicationsStore.ApplicationStore store)
| Method Detail |
|---|
public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
public String getUser()
public void updateResourceRequests(List<org.apache.hadoop.yarn.api.records.ResourceRequest> requests)
public Map<String,org.apache.hadoop.yarn.api.records.ResourceRequest> getResourceRequests(org.apache.hadoop.yarn.api.records.Priority priority)
public int getNewContainerId()
public Collection<org.apache.hadoop.yarn.api.records.Priority> getPriorities()
public org.apache.hadoop.yarn.api.records.ResourceRequest getResourceRequest(org.apache.hadoop.yarn.api.records.Priority priority,
String nodeAddress)
public int getTotalRequiredResources(org.apache.hadoop.yarn.api.records.Priority priority)
public org.apache.hadoop.yarn.api.records.Resource getResource(org.apache.hadoop.yarn.api.records.Priority priority)
public boolean isPending()
public String getQueueName()
public Collection<RMContainer> getLiveContainers()
public void stop(RMAppAttemptState rmAppAttemptFinalState)
public void containerLaunchedOnNode(org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId)
public void containerCompleted(RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event)
public RMContainer allocate(NodeType type,
SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ResourceRequest request,
org.apache.hadoop.yarn.api.records.Container container)
public List<org.apache.hadoop.yarn.api.records.Container> pullNewlyAllocatedContainers()
public org.apache.hadoop.yarn.api.records.Resource getCurrentConsumption()
public void showRequests()
public RMContainer getRMContainer(org.apache.hadoop.yarn.api.records.ContainerId id)
public void resetSchedulingOpportunities(org.apache.hadoop.yarn.api.records.Priority priority)
public void addSchedulingOpportunity(org.apache.hadoop.yarn.api.records.Priority priority)
public int getSchedulingOpportunities(org.apache.hadoop.yarn.api.records.Priority priority)
public int getReReservations(org.apache.hadoop.yarn.api.records.Priority priority)
public int getNumReservedContainers(org.apache.hadoop.yarn.api.records.Priority priority)
@InterfaceStability.Stable @InterfaceAudience.Private public org.apache.hadoop.yarn.api.records.Resource getCurrentReservation()
public RMContainer reserve(SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.Container container)
public void unreserve(SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority)
public boolean isReserved(SchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority)
node at the
given priority?
node - node to be checkedpriority - priority of reserved container
public float getLocalityWaitFactor(org.apache.hadoop.yarn.api.records.Priority priority,
int clusterNodes)
public List<RMContainer> getReservedContainers()
public void setHeadroom(org.apache.hadoop.yarn.api.records.Resource globalLimit)
public org.apache.hadoop.yarn.api.records.Resource getHeadroom()
public Queue getQueue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||