public static String getJobRunState(int state) {
    if (state < 1 || state >= runStates.length) {
      return UNKNOWN;
    }
    return runStates[state];
  }
public static String getJobRunState ( int state ) { if ( state < 1 || state >= runStates . length ) { return UNKNOWN ; } return runStates [ state ] ; }
Helper method to get human-readable state of the job.
@param state job state
@return human-readable state of the job