Example usage for org.apache.hadoop.yarn.server.resourcemanager.scheduler SchedulerApplicationAttempt getApplicationAttemptId

List of usage examples for org.apache.hadoop.yarn.server.resourcemanager.scheduler SchedulerApplicationAttempt getApplicationAttemptId

Introduction

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

Prototype

public ApplicationAttemptId getApplicationAttemptId() 

Source Link

Document

Get ApplicationAttemptId of the application master.

Usage

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

License:Apache License

public FiCaSchedulerAppInfo(SchedulerApplicationAttempt schedulerApp) {
    this.fiCaSchedulerAppToAdd = schedulerApp;
    this.applicationAttemptId = schedulerApp.getApplicationAttemptId();
}

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

License:Apache License

public void updateAppInfo(SchedulerApplicationAttempt schedulerApp) {
    this.fiCaSchedulerAppToAdd = schedulerApp;
    this.applicationAttemptId = schedulerApp.getApplicationAttemptId();
    update = true;/*w ww.j  a  v  a  2 s  .co m*/
}

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

License:Apache License

public void setFiCaSchedulerAppInfo(SchedulerApplicationAttempt schedulerApp) {
    FiCaSchedulerAppInfo ficaInfo = new FiCaSchedulerAppInfo(schedulerApp);
    fiCaSchedulerAppInfo.put(schedulerApp.getApplicationAttemptId().toString(), ficaInfo);
}