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