org.apache.oozie.util
Class CoordActionsInDateRange

java.lang.Object
  extended by org.apache.oozie.util.CoordActionsInDateRange

public class CoordActionsInDateRange
extends Object

This class provides the utility of listing coordinator actions that were executed between a certain date range. This is helpful in turn for retrieving the required logs in that date range.


Constructor Summary
CoordActionsInDateRange()
           
 
Method Summary
static List<CoordinatorActionBean> getCoordActionsFromDates(String jobId, String scope)
          Get the list of actions for given date ranges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordActionsInDateRange

public CoordActionsInDateRange()
Method Detail

getCoordActionsFromDates

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

Parameters:
jobId - coordinator job id
scope - the date range for log. format is 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 Internally involves a database operation by invoking method 'getActionIdsFromDateRange'.
Throws:
XException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.