org.apache.hadoop.yarn.server.resourcemanager.scheduler
Class SchedulerApplication

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerApplication
Direct Known Subclasses:
FiCaSchedulerApp, FSSchedulerApp

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class SchedulerApplication
extends Object

Represents an Application from the viewpoint of the scheduler. Each running Application in the RM corresponds to one instance of this class.


Constructor Summary
SchedulerApplication()
           
 
Method Summary
abstract  org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
          Get ApplicationAttemptId of the application master.
abstract  Collection<RMContainer> getLiveContainers()
          Get the live containers of the application.
abstract  Collection<RMContainer> getReservedContainers()
          Get the reserved containers of the application.
abstract  boolean isPending()
          Is this application pending?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerApplication

public SchedulerApplication()
Method Detail

getApplicationAttemptId

public abstract org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
Get ApplicationAttemptId of the application master.

Returns:
ApplicationAttemptId of the application master

getLiveContainers

public abstract Collection<RMContainer> getLiveContainers()
Get the live containers of the application.

Returns:
live containers of the application

getReservedContainers

public abstract Collection<RMContainer> getReservedContainers()
Get the reserved containers of the application.

Returns:
the reserved containers of the application

isPending

public abstract boolean isPending()
Is this application pending?

Returns:
true if it is else false.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.