use of org.apache.oozie.BundleActionBean in project oozie by apache.
the class XDataTestCase method createBundleAction.
/**
* Create bundle action bean
*
* @param jobId bundle job id
* @param coordId coordinator id
* @param coordName coordinator name
* @param pending true if action is pending
* @param status job status
* @return bundle action bean
* @throws Exception
*/
protected BundleActionBean createBundleAction(String jobId, String coordId, String coordName, int pending, Job.Status status) throws Exception {
BundleActionBean action = new BundleActionBean();
action.setBundleId(jobId);
action.setBundleActionId(jobId + "_" + coordName);
action.setPending(pending);
action.setCoordId(coordId);
action.setCoordName(coordName);
action.setStatus(status);
action.setLastModifiedTime(new Date());
return action;
}
Aggregations