public class CoordUtils extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HADOOP_USER |
| Constructor and Description |
|---|
CoordUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<CoordinatorActionBean> |
getCoordActions(java.lang.String rangeType,
java.lang.String jobId,
java.lang.String scope,
boolean active)
Get the list of actions for a given coordinator job
|
static java.util.List<CoordinatorActionBean> |
getCoordActionsFromIds(java.lang.String jobId,
java.lang.String scope)
Get the list of actions for given id ranges
|
static java.lang.String |
getDoneFlag(org.jdom.Element doneFlagElement) |
static org.apache.hadoop.conf.Configuration |
getHadoopConf(org.apache.hadoop.conf.Configuration jobConf) |
static java.util.Map<java.lang.String,java.lang.Object> |
getWhereClause(java.lang.StringBuilder sb,
java.util.Map<Pair<java.lang.String,CoordinatorEngine.FILTER_COMPARATORS>,java.util.List<java.lang.Object>> filterMap) |
public static final java.lang.String HADOOP_USER
public CoordUtils()
public static java.lang.String getDoneFlag(org.jdom.Element doneFlagElement)
public static org.apache.hadoop.conf.Configuration getHadoopConf(org.apache.hadoop.conf.Configuration jobConf)
public static java.util.List<CoordinatorActionBean> getCoordActions(java.lang.String rangeType, java.lang.String jobId, java.lang.String scope, boolean active) throws CommandException
rangeType - the rerun type (date, action)jobId - the coordinator job idscope - the date scope or action id scopeCommandExceptionpublic static java.util.List<CoordinatorActionBean> getCoordActionsFromIds(java.lang.String jobId, java.lang.String scope) throws CommandException
jobId - coordinator job idscope - a comma-separated list of action ranges. The action range is specified with two action numbers separated by '-'CommandException - thrown if failed to get coordinator actions by given id rangepublic static java.util.Map<java.lang.String,java.lang.Object> getWhereClause(java.lang.StringBuilder sb, java.util.Map<Pair<java.lang.String,CoordinatorEngine.FILTER_COMPARATORS>,java.util.List<java.lang.Object>> filterMap)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.