public class StatusUtils extends Object
| Constructor and Description | 
|---|
StatusUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Job.Status | 
getStatus(CoordinatorJobBean coordJob)
This Function transforms the statuses based on the name space of the coordinator App 
 | 
static boolean | 
getStatusForCoordActionInputCheck(CoordinatorJobBean coordJob)
This function check if eligible to do action input check  when running with backward support is true. 
 | 
static Job.Status | 
getStatusForCoordRerun(CoordinatorJobBean coordJob,
                                            Job.Status prevStatus)
This function changes back the status for coordinator rerun if the job was SUCCEEDED or SUSPENDED when rerun
 with backward support is true. 
 | 
static Job.Status | 
getStatusIfBackwardSupportTrue(Job.Status currentJobStatus)
Get the status of coordinator job for Oozie versions (3.2 and before) when RUNNINGWITHERROR,
 SUSPENDEDWITHERROR and PAUSEDWITHERROR are not supported 
 | 
static boolean | 
isV1CoordjobKillable(CoordinatorJobBean coordJob)
If namespace 0.1 is used and backward support is true, SUCCEEDED coord job can be killed 
 | 
public StatusUtils()
public static Job.Status getStatus(CoordinatorJobBean coordJob)
coordJob - This will be the coordinator job bean for which we need to get the status based on versionpublic static Job.Status getStatusForCoordRerun(CoordinatorJobBean coordJob, Job.Status prevStatus)
coordJob - This will be the coordinator job bean for which we need to get the status based on versionprevStatus - coordinator job previous statuspublic static boolean getStatusForCoordActionInputCheck(CoordinatorJobBean coordJob)
coordJob - This will be the coordinator job bean for which we need to get the status based on versionpublic static boolean isV1CoordjobKillable(CoordinatorJobBean coordJob)
coordJob - the coordinator jobpublic static Job.Status getStatusIfBackwardSupportTrue(Job.Status currentJobStatus)
currentJobStatus - Copyright © 2016 Apache Software Foundation. All rights reserved.