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<String> getCoordActionIdsFromDateRange(String jobId, String range)
          Get the coordinator actions for a given date range
static List<String> getCoordActionIdsFromDates(String jobId, String scope)
          Get the list of Coordinator action Ids for given date ranges
static List<CoordinatorActionBean> getCoordActionsFromDateRange(String jobId, String range)
          Get the coordinator actions for a given date range
 
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

getCoordActionIdsFromDates

public static List<String> getCoordActionIdsFromDates(String jobId,
                                                      String scope)
                                               throws XException
Get the list of Coordinator action Ids 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 action Ids for the date range Internally involves a database operation by invoking method 'getActionIdsFromDateRange'.
Throws:
XException

getCoordActionsFromDateRange

public static List<CoordinatorActionBean> getCoordActionsFromDateRange(String jobId,
                                                                       String range)
                                                                throws XException
Get the coordinator actions for a given date range

Parameters:
jobId - the coordinator job id
range - the date range separated by '::'
Returns:
the list of Coordinator actions for the date range
Throws:
XException

getCoordActionIdsFromDateRange

public static List<String> getCoordActionIdsFromDateRange(String jobId,
                                                          String range)
                                                   throws XException
Get the coordinator actions for a given date range

Parameters:
jobId - the coordinator job id
range - the date range separated by '::'
Returns:
the list of Coordinator actions for the date range
Throws:
XException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.