public static JobState convertFromProtoFormat(JobStateProto e) { return JobState.valueOf(e.name().replace(JOB_STATE_PREFIX, "")); }
@Override public JobState getState() { JobState js = null; try { js = JobState.valueOf(jobIndexInfo.getJobStatus()); } catch (Exception e) { // Meant for use by the display UI. Exception would prevent it from being // rendered.e Defaulting to KILLED LOG.warn("Exception while parsing job state. Defaulting to KILLED", e); js = JobState.KILLED; } return js; }
@Override public JobState getState() { JobState js = null; try { js = JobState.valueOf(jobIndexInfo.getJobStatus()); } catch (Exception e) { // Meant for use by the display UI. Exception would prevent it from being // rendered.e Defaulting to KILLED LOG.warn("Exception while parsing job state. Defaulting to KILLED", e); js = JobState.KILLED; } return js; }
@Override public JobState getState() { return JobState.valueOf(jobInfo.getJobStatus()); }
@Override public JobState getState() { return JobState.valueOf(jobInfo.getJobStatus()); }
@Override public JobState getState() { return JobState.valueOf(jobInfo.getJobStatus()); }
@Override public JobState getState() { JobState js = null; try { js = JobState.valueOf(jobIndexInfo.getJobStatus()); } catch (Exception e) { // Meant for use by the display UI. Exception would prevent it from being // rendered.e Defaulting to KILLED LOG.warn("Exception while parsing job state. Defaulting to KILLED", e); js = JobState.KILLED; } return js; }
public static JobState convertFromProtoFormat(JobStateProto e) { return JobState.valueOf(e.name().replace(JOB_STATE_PREFIX, "")); }
public static JobState convertFromProtoFormat(JobStateProto e) { return JobState.valueOf(e.name().replace(JOB_STATE_PREFIX, "")); }
public static JobState convertFromProtoFormat(JobStateProto e) { return JobState.valueOf(e.name().replace(JOB_STATE_PREFIX, "")); }
private JobState getExternalState(JobStateInternal smState) { switch (smState) { case KILL_WAIT: case KILL_ABORT: return JobState.KILLED; case SETUP: case COMMITTING: return JobState.RUNNING; case FAIL_WAIT: case FAIL_ABORT: return JobState.FAILED; case REBOOT: if (appContext.isLastAMRetry()) { return JobState.ERROR; } else { // In case of not last retry, return the external state as RUNNING since // otherwise JobClient will exit when it polls the AM for job state return JobState.RUNNING; } default: return JobState.valueOf(smState.name()); } }
private JobState getExternalState(JobStateInternal smState) { switch (smState) { case KILL_WAIT: case KILL_ABORT: return JobState.KILLED; case SETUP: case COMMITTING: return JobState.RUNNING; case FAIL_WAIT: case FAIL_ABORT: return JobState.FAILED; case REBOOT: if (appContext.isLastAMRetry()) { return JobState.ERROR; } else { // In case of not last retry, return the external state as RUNNING since // otherwise JobClient will exit when it polls the AM for job state return JobState.RUNNING; } default: return JobState.valueOf(smState.name()); } }
private JobState getExternalState(JobStateInternal smState) { switch (smState) { case KILL_WAIT: case KILL_ABORT: return JobState.KILLED; case SETUP: case COMMITTING: return JobState.RUNNING; case FAIL_WAIT: case FAIL_ABORT: return JobState.FAILED; case REBOOT: if (appContext.isLastAMRetry()) { return JobState.ERROR; } else { // In case of not last retry, return the external state as RUNNING since // otherwise JobClient will exit when it polls the AM for job state return JobState.RUNNING; } default: return JobState.valueOf(smState.name()); } }
jobState = JobState.valueOf(stateQuery);
jobState = JobState.valueOf(stateQuery);
jobState = JobState.valueOf(stateQuery);
private void constructJobReport() { report = Records.newRecord(JobReport.class); report.setJobId(jobId); report.setJobState(JobState.valueOf(jobInfo.getJobStatus())); report.setSubmitTime(jobInfo.getSubmitTime()); report.setStartTime(jobInfo.getLaunchTime());
private void constructJobReport() { report = Records.newRecord(JobReport.class); report.setJobId(jobId); report.setJobState(JobState.valueOf(jobInfo.getJobStatus())); report.setSubmitTime(jobInfo.getSubmitTime()); report.setStartTime(jobInfo.getLaunchTime());
private void constructJobReport() { report = Records.newRecord(JobReport.class); report.setJobId(jobId); report.setJobState(JobState.valueOf(jobInfo.getJobStatus())); report.setSubmitTime(jobInfo.getSubmitTime()); report.setStartTime(jobInfo.getLaunchTime());