public class StatusUtils extends Object
Constructor and Description |
---|
StatusUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.oozie.client.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 org.apache.oozie.client.Job.Status |
getStatusForCoordRerun(CoordinatorJobBean coordJob,
org.apache.oozie.client.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 org.apache.oozie.client.Job.Status |
getStatusIfBackwardSupportTrue(org.apache.oozie.client.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 org.apache.oozie.client.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 org.apache.oozie.client.Job.Status getStatusForCoordRerun(CoordinatorJobBean coordJob, org.apache.oozie.client.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 org.apache.oozie.client.Job.Status getStatusIfBackwardSupportTrue(org.apache.oozie.client.Job.Status currentJobStatus)
coordJob
- Copyright © 2014 Apache Software Foundation. All Rights Reserved.