|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.client.rest.JsonWorkflowAction org.apache.oozie.WorkflowActionBean
@Entity public class WorkflowActionBean
Bean that contains all the information to start an action for a workflow node.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.oozie.client.WorkflowAction |
---|
org.apache.oozie.client.WorkflowAction.Status |
Constructor Summary | |
---|---|
WorkflowActionBean()
Default constructor. |
Method Summary | |
---|---|
Date |
getEndTime()
|
Timestamp |
getEndTimestamp()
Return the action last check time |
String |
getExecutionPath()
Return the node execution path. |
String |
getExecutionStats()
Return the action statistics info. |
String |
getExternalChildIDs()
Return the external child IDs. |
String |
getJobId()
Return the job Id. |
Date |
getLastCheckTime()
Return the action last check time |
Timestamp |
getLastCheckTimestamp()
Return the action last check time |
String |
getLogToken()
Return the job log token. |
boolean |
getPending()
|
Date |
getPendingAge()
Return the pending age of the action. |
Timestamp |
getPendingAgeTimestamp()
Return the action last check time |
String |
getSignalValue()
Return the signal value for the action. |
String |
getSlaXml()
|
Date |
getStartTime()
|
Timestamp |
getStartTimestamp()
Return the action last check time |
org.apache.oozie.client.WorkflowAction.Status |
getStatus()
|
String |
getStatusStr()
|
String |
getWfId()
Return the job Id. |
void |
incRetries()
Increments the number of retries for the action. |
boolean |
inTerminalState()
Return whether workflow action in terminal state or not |
boolean |
isComplete()
Return if the action is complete. |
boolean |
isExecutionComplete()
Return if the action execution is complete. |
boolean |
isPending()
Return if the action is pending. |
boolean |
isRetryOrManual()
Return if the action is START_RETRY or START_MANUAL or END_RETRY or END_MANUAL. |
boolean |
isTerminalWithFailure()
Return if the action is complete with failure. |
boolean |
isUserRetry()
Return true if the action is USER_RETRY |
void |
readFields(DataInput dataInput)
Deserialize an action bean from a data input. |
void |
resetPending()
Removes the pending flag and pendingAge from the action. |
void |
resetPendingOnly()
Removes the pending flag from the action. |
void |
setEndData(org.apache.oozie.client.WorkflowAction.Status status,
String signalValue)
Set the completion information for an action end. |
void |
setEndTime(Date endTime)
|
void |
setExecutionData(String externalStatus,
Properties actionData)
Set the completion information for an action start. |
void |
setExecutionPath(String executionPath)
Set the node execution path. |
void |
setExecutionStats(String jsonStats)
Set the action statistics info for the workflow action. |
void |
setExternalChildIDs(String externalChildIDs)
Set the external child IDs for the workflow action. |
void |
setJobId(String id)
Set the job id. |
void |
setLastCheckTime(Date lastCheckTime)
Sets the action last check time |
void |
setLogToken(String logToken)
Set the job log token. |
void |
setPending()
Set the action as pending and the current time as pending. |
void |
setPendingAge(Date pendingAge)
Set a time when the action will be pending, normally a time in the future. |
void |
setPendingOnly()
Set the action pending flag to true. |
void |
setSignalValue(String signalValue)
Set the signal value for the action. |
void |
setSlaXml(String slaXml)
|
void |
setStartData(String externalId,
String trackerUri,
String consoleUrl)
Set a tracking information for an action, and set the action status to Action.Status#DONE |
void |
setStartTime(Date startTime)
|
void |
setStatus(org.apache.oozie.client.WorkflowAction.Status val)
|
void |
write(DataOutput dataOutput)
Serialize the action bean to a data output. |
Methods inherited from class org.apache.oozie.client.rest.JsonWorkflowAction |
---|
getConf, getConsoleUrl, getCred, getData, getErrorCode, getErrorMessage, getExternalId, getExternalStatus, getId, getName, getRetries, getStats, getTrackerUri, getTransition, getType, getUserRetryCount, getUserRetryInterval, getUserRetryMax, incrmentUserRetryCount, setConf, setConsoleUrl, setCred, setData, setErrorInfo, setExternalId, setExternalStatus, setId, setName, setRetries, setStats, setTrackerUri, setTransition, setType, setUserRetryCount, setUserRetryInterval, setUserRetryMax, toJSONArray, toJSONObject, toJSONObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WorkflowActionBean()
Method Detail |
---|
public void write(DataOutput dataOutput) throws IOException
write
in interface org.apache.hadoop.io.Writable
dataOutput
- data output.
IOException
- thrown if the action bean could not be serialized.public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
dataInput
- data input.
IOException
- thrown if the action bean could not be deserialized.public boolean inTerminalState()
public boolean isExecutionComplete()
public boolean isRetryOrManual()
public boolean isUserRetry()
public boolean isComplete()
public boolean isTerminalWithFailure()
public void setPendingOnly()
public void setPending()
public void setPendingAge(Date pendingAge)
pendingAge
- the time when the action will be pending.public Date getPendingAge()
null
if the action is not pending.public boolean isPending()
public void resetPending()
public void resetPendingOnly()
public void incRetries()
public void setStartData(String externalId, String trackerUri, String consoleUrl)
Action.Status#DONE
externalId
- external ID for the action.trackerUri
- tracker URI for the action.consoleUrl
- console URL for the action.public void setExecutionData(String externalStatus, Properties actionData)
Action.Status#DONE
externalStatus
- action external end status.actionData
- action output data, null
if there is no action output data.public String getExecutionStats()
public void setExecutionStats(String jsonStats)
Json
- representation of the stats.public String getExternalChildIDs()
getExternalChildIDs
in interface org.apache.oozie.client.WorkflowAction
getExternalChildIDs
in class JsonWorkflowAction
public void setExternalChildIDs(String externalChildIDs)
setExternalChildIDs
in class JsonWorkflowAction
externalChildIDs
- as a string.public void setEndData(org.apache.oozie.client.WorkflowAction.Status status, String signalValue)
status
- action status, Action.Status#OK
or Action.Status#ERROR
or Action.Status#KILLED
signalValue
- the signal value. In most cases, the value should be OK or ERROR.public String getJobId()
public String getWfId()
public void setJobId(String id)
id
- jobId;public String getSlaXml()
public void setSlaXml(String slaXml)
public void setStatus(org.apache.oozie.client.WorkflowAction.Status val)
setStatus
in class JsonWorkflowAction
public String getStatusStr()
public org.apache.oozie.client.WorkflowAction.Status getStatus()
getStatus
in interface org.apache.oozie.client.WorkflowAction
getStatus
in class JsonWorkflowAction
public String getExecutionPath()
public void setExecutionPath(String executionPath)
executionPath
- the node execution path.public String getSignalValue()
public void setSignalValue(String signalValue)
signalValue
- the action signal value.public String getLogToken()
public void setLogToken(String logToken)
logToken
- the job log token.public Date getLastCheckTime()
public Timestamp getLastCheckTimestamp()
public Timestamp getStartTimestamp()
public Timestamp getEndTimestamp()
public Timestamp getPendingAgeTimestamp()
public void setLastCheckTime(Date lastCheckTime)
lastCheckTime
- the last check time to set.public boolean getPending()
public Date getStartTime()
getStartTime
in interface org.apache.oozie.client.WorkflowAction
getStartTime
in class JsonWorkflowAction
public void setStartTime(Date startTime)
setStartTime
in class JsonWorkflowAction
public Date getEndTime()
getEndTime
in interface org.apache.oozie.client.WorkflowAction
getEndTime
in class JsonWorkflowAction
public void setEndTime(Date endTime)
setEndTime
in class JsonWorkflowAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |