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" ; }
Convert the status of a GramJob from an integer to a string . This method is not typically called by users .