public class CoordActionsInDateRange extends Object
Constructor and Description |
---|
CoordActionsInDateRange() |
Modifier and Type | Method and Description |
---|---|
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,
boolean active)
Get the coordinator actions for a given date range
|
static Date |
getCoordActionsLastModifiedDate(String jobId,
String startAction,
String endAction)
Gets the coordinator actions last modified date for range, if any action is running it return new date
|
public CoordActionsInDateRange()
public static List<String> getCoordActionIdsFromDates(String jobId, String scope) throws XException
jobId
- coordinator job idscope
- the date range for log. format is comma-separated list of date ranges.
Each date range element is specified with two dates separated by '::'XException
- if the scope is not well formatted
Internally involves a database operation by invoking method 'getActionIdsFromDateRange'.public static List<CoordinatorActionBean> getCoordActionsFromDateRange(String jobId, String range, boolean active) throws XException
jobId
- the coordinator job idrange
- the date range separated by '::'active
- to list only active (non-terminated) actionsXException
- if range is not well formatted or invalidpublic static List<String> getCoordActionIdsFromDateRange(String jobId, String range) throws XException
jobId
- the coordinator job idrange
- the date range separated by '::'XException
- if range is not well formatted or invalidpublic static Date getCoordActionsLastModifiedDate(String jobId, String startAction, String endAction) throws CommandException
jobId
- the job idstartAction
- the start actionendAction
- the end actionCommandException
- the command exceptionCopyright © 2018 Apache Software Foundation. All rights reserved.