org.apache.oozie.coord
Class CoordUtils

java.lang.Object
  extended by org.apache.oozie.coord.CoordUtils

public class CoordUtils
extends Object


Field Summary
static String HADOOP_USER
           
 
Constructor Summary
CoordUtils()
           
 
Method Summary
static List<CoordinatorActionBean> getCoordActionsFromDates(String jobId, String scope)
          Get the list of actions for given date ranges
static List<CoordinatorActionBean> getCoordActionsFromIds(String jobId, String scope)
          Get the list of actions for given id ranges
static String getDoneFlag(org.jdom.Element doneFlagElement)
           
static org.apache.hadoop.conf.Configuration getHadoopConf(org.apache.hadoop.conf.Configuration jobConf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HADOOP_USER

public static final String HADOOP_USER
See Also:
Constant Field Values
Constructor Detail

CoordUtils

public CoordUtils()
Method Detail

getDoneFlag

public static String getDoneFlag(org.jdom.Element doneFlagElement)

getHadoopConf

public static org.apache.hadoop.conf.Configuration getHadoopConf(org.apache.hadoop.conf.Configuration jobConf)

getCoordActionsFromDates

public static List<CoordinatorActionBean> getCoordActionsFromDates(String jobId,
                                                                   String scope)
                                                            throws CommandException
Get the list of actions for given date ranges

Parameters:
jobId - coordinator job id
scope - a comma-separated list of date ranges. Each date range element is specified with two dates separated by '::'
Returns:
the list of Coordinator actions for the date range
Throws:
CommandException - thrown if failed to get coordinator actions by given date range

getCoordActionsFromIds

public static List<CoordinatorActionBean> getCoordActionsFromIds(String jobId,
                                                                 String scope)
                                                          throws CommandException
Get the list of actions for given id ranges

Parameters:
jobId - coordinator job id
scope - a comma-separated list of action ranges. The action range is specified with two action numbers separated by '-'
Returns:
the list of all Coordinator actions for action range
Throws:
CommandException - thrown if failed to get coordinator actions by given id range


Copyright © 2013 Apache Software Foundation. All Rights Reserved.