code: public static String getStatusAsString(int status) {
  	if (status == STATUS_PENDING) {
  	    return "PENDING";
  	} else if (status == STATUS_ACTIVE) {
  	    return "ACTIVE";
  	} else if (status == STATUS_DONE) {
  	    return "DONE";
  	} else if (status == STATUS_FAILED) {
  	    return "FAILED";
  	} else if (status == STATUS_SUSPENDED) {
  	    return "SUSPENDED";
  	} else if (status == STATUS_UNSUBMITTED) {
  	    return "UNSUBMITTED";
  	} else if (status == STATUS_STAGE_IN) {
  	    return "STAGE_IN";
  	} else if (status == STATUS_STAGE_OUT) {
  	    return "STAGE_OUT";
  	}
  	return "Unknown";
      }
docs: Convert the status of a GramJob from an integer to a string. This
  method is not typically called by users.
  
  @return string representing the status of the GramJob passed as an
  argument.