@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; }