List of usage examples for org.apache.hadoop.yarn.server.resourcemanager.scheduler SchedulerApplicationAttempt getApplicationAttemptId
public ApplicationAttemptId getApplicationAttemptId()
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); }