org.apache.hadoop.yarn.server.resourcemanager.webapp.dao
Class FairSchedulerInfo

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerInfo
      extended by org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.FairSchedulerInfo

public class FairSchedulerInfo
extends SchedulerInfo


Field Summary
static int INVALID_FAIR_SHARE
           
 
Constructor Summary
FairSchedulerInfo()
           
FairSchedulerInfo(FairScheduler fs)
           
 
Method Summary
 int getAppFairShare(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
          Get the fair share assigned to the appAttemptId.
 FairSchedulerQueueInfo getRootQueueInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_FAIR_SHARE

public static final int INVALID_FAIR_SHARE
See Also:
Constant Field Values
Constructor Detail

FairSchedulerInfo

public FairSchedulerInfo()

FairSchedulerInfo

public FairSchedulerInfo(FairScheduler fs)
Method Detail

getAppFairShare

public int getAppFairShare(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
Get the fair share assigned to the appAttemptId.

Parameters:
appAttemptId -
Returns:
The fair share assigned to the appAttemptId, FairSchedulerInfo#INVALID_FAIR_SHARE if the scheduler does not know about this application attempt.

getRootQueueInfo

public FairSchedulerQueueInfo getRootQueueInfo()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.