Example usage for org.apache.hadoop.yarn.server.resourcemanager.scheduler.common.fica FiCaSchedulerApp getApplicationAttemptId

List of usage examples for org.apache.hadoop.yarn.server.resourcemanager.scheduler.common.fica FiCaSchedulerApp getApplicationAttemptId

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.server.resourcemanager.scheduler.common.fica FiCaSchedulerApp getApplicationAttemptId.

Prototype

public ApplicationAttemptId getApplicationAttemptId() 

Source Link

Document

Get ApplicationAttemptId of the application master.

Usage

From source file:io.hops.ha.common.CSQueueInfo.java

License:Apache License

public void addCSLeafPendingApp(FiCaSchedulerApp application, String queuePath) {
    csLeafQueuePendingAppToAdd.put(application.getApplicationAttemptId().toString(),
            new LeafQueuePendingApp(application.getApplicationAttemptId().toString(), queuePath));
}

From source file:io.hops.ha.common.CSQueueInfo.java

License:Apache License

public void removeCSLeafPendingApp(FiCaSchedulerApp application) {
    if (csLeafQueuePendingAppToAdd.remove(application.getApplicationAttemptId().toString()) == null) {
        csLeafQueuePendingAppToRemove.put(application.getApplicationAttemptId().toString(),
                new LeafQueuePendingApp(application.getApplicationAttemptId().toString()));
    }/*from w  w w  .j a va 2 s.  c  o  m*/
}