|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.command.coord.CoordCommandUtils
public class CoordCommandUtils
Field Summary | |
---|---|
static int |
CURRENT
|
static int |
FUTURE
|
static int |
LATEST
|
static int |
OFFSET
|
static String |
RESOLVED_UNRESOLVED_SEPARATOR
|
static int |
UNEXPECTED
|
Constructor Summary | |
---|---|
CoordCommandUtils()
|
Method Summary | |
---|---|
static void |
checkIfBothSameType(String startInst,
String endInst)
|
static String |
createEarlyURIs(org.jdom.Element event,
String instances,
StringBuilder unresolvedInstances,
StringBuilder urisWithDoneFlag)
The function create a list of URIs separated by "," using the instances time stamp and URI-template |
static int |
getFuncType(String function)
|
static int |
getInstanceNumber(String function,
org.jdom.Element event,
SyncCoordAction appInst,
org.apache.hadoop.conf.Configuration conf,
StringBuilder restArg)
parse a function like coord:latest(n)/future() and return the 'n'. |
static String |
getResolvedList(String missDepList,
StringBuilder resolved,
StringBuilder unresolved)
Get resolved string from missDepList |
static void |
materializeDataEvents(List<org.jdom.Element> events,
SyncCoordAction appInst,
org.apache.hadoop.conf.Configuration conf,
StringBuffer dependencyList)
Materialize all |
static String |
materializeInstance(org.jdom.Element event,
String expr,
SyncCoordAction appInst,
org.apache.hadoop.conf.Configuration conf,
ELEvaluator evalInst)
Materialize one instance like current(-2) |
static String |
materializeOneInstance(String jobId,
boolean dryrun,
org.jdom.Element eAction,
Date nominalTime,
Date actualTime,
int instanceCount,
org.apache.hadoop.conf.Configuration conf,
CoordinatorActionBean actionBean)
Materialize one instance for specific nominal time. |
static boolean |
materializeSLA(org.jdom.Element eSla,
Date nominalTime,
org.apache.hadoop.conf.Configuration conf)
|
static void |
resolveInstanceRange(org.jdom.Element event,
StringBuilder instances,
SyncCoordAction appInst,
org.apache.hadoop.conf.Configuration conf,
ELEvaluator eval)
Resolve |
static void |
resolveInstances(org.jdom.Element event,
StringBuilder instances,
SyncCoordAction actionInst,
org.apache.hadoop.conf.Configuration conf,
ELEvaluator eval)
Resolve list of |
static void |
separateResolvedAndUnresolved(org.jdom.Element event,
StringBuilder instances,
StringBuffer dependencyList)
Create two new tags with |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int CURRENT
public static int LATEST
public static int FUTURE
public static int OFFSET
public static int UNEXPECTED
public static final String RESOLVED_UNRESOLVED_SEPARATOR
Constructor Detail |
---|
public CoordCommandUtils()
Method Detail |
---|
public static int getInstanceNumber(String function, org.jdom.Element event, SyncCoordAction appInst, org.apache.hadoop.conf.Configuration conf, StringBuilder restArg) throws Exception
function
- event
- appInst
- conf
- restArg
-
Exception
public static int getFuncType(String function)
EL
- function name
public static void checkIfBothSameType(String startInst, String endInst) throws CommandException
startInst:
- EL function nameendInst:
- EL function name
CommandException
- if both are not the same functionpublic static void resolveInstances(org.jdom.Element event, StringBuilder instances, SyncCoordAction actionInst, org.apache.hadoop.conf.Configuration conf, ELEvaluator eval) throws Exception
event
- instances
- actionInst
- conf
- eval:
- ELEvalautor
Exception
public static void resolveInstanceRange(org.jdom.Element event, StringBuilder instances, SyncCoordAction appInst, org.apache.hadoop.conf.Configuration conf, ELEvaluator eval) throws Exception
event
- instances
- appInst
- conf
- eval:
- ELEvalautor
Exception
public static String materializeInstance(org.jdom.Element event, String expr, SyncCoordAction appInst, org.apache.hadoop.conf.Configuration conf, ELEvaluator evalInst) throws Exception
event
- : expr
- : instance like current(-1)appInst
- : application specific infoconf
- evalInst
- :ELEvaluator
Exception
public static void separateResolvedAndUnresolved(org.jdom.Element event, StringBuilder instances, StringBuffer dependencyList) throws Exception
event
- instances
- dependencyList
-
Exception
public static String createEarlyURIs(org.jdom.Element event, String instances, StringBuilder unresolvedInstances, StringBuilder urisWithDoneFlag) throws Exception
event
- : instances
- : List of time stamp separated by ","unresolvedInstances
- : list of instance with latest functionurisWithDoneFlag
- : list of URIs with the done flag appended
Exception
public static boolean materializeSLA(org.jdom.Element eSla, Date nominalTime, org.apache.hadoop.conf.Configuration conf) throws CoordinatorJobException
eSla
- nominalTime
- conf
-
CoordinatorJobException
public static String materializeOneInstance(String jobId, boolean dryrun, org.jdom.Element eAction, Date nominalTime, Date actualTime, int instanceCount, org.apache.hadoop.conf.Configuration conf, CoordinatorActionBean actionBean) throws Exception
jobId
- coordinator job iddryrun
- true if it is dryruneAction
- frequency unexploded-jobnominalTime
- materialization timeactualTime
- action actual timeinstanceCount
- instance numbersconf
- job configurationactionBean
- CoordinatorActionBean to materialize
Exception
public static void materializeDataEvents(List<org.jdom.Element> events, SyncCoordAction appInst, org.apache.hadoop.conf.Configuration conf, StringBuffer dependencyList) throws Exception
events
- appInst
- conf
-
Exception
public static String getResolvedList(String missDepList, StringBuilder resolved, StringBuilder unresolved)
missDepList
- resolved
- unresolved
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |