|
||||||||||
| 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.ActiveUsersManager
@InterfaceAudience.Private public class ActiveUsersManager
ActiveUsersManager tracks active users in the system.
A user is deemed to be active if he has any running applications with
outstanding resource requests.
An active user is defined as someone with outstanding resource requests.
| Constructor Summary | |
|---|---|
ActiveUsersManager(QueueMetrics metrics)
|
|
| Method Summary | |
|---|---|
void |
activateApplication(String user,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
An application has new outstanding requests. |
void |
deactivateApplication(String user,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
An application has no more outstanding requests. |
int |
getNumActiveUsers()
Get number of active users i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveUsersManager(QueueMetrics metrics)
| Method Detail |
|---|
@Lock(value={Queue.class,SchedulerApplicationAttempt.class})
public void activateApplication(String user,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
user - application userapplicationId - activated application
@Lock(value={Queue.class,SchedulerApplicationAttempt.class})
public void deactivateApplication(String user,
org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
user - application userapplicationId - deactivated application
@Lock(value={Queue.class,SchedulerApplicationAttempt.class})
public int getNumActiveUsers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||