|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oozie.client.rest.JsonWorkflowAction
public class JsonWorkflowAction
Json Bean that represents an Oozie workflow node.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.oozie.client.WorkflowAction |
---|
WorkflowAction.Status |
Constructor Summary | |
---|---|
JsonWorkflowAction()
|
|
JsonWorkflowAction(org.json.simple.JSONObject jsonObject)
|
Method Summary | |
---|---|
static List<JsonWorkflowAction> |
fromJSONArray(org.json.simple.JSONArray array)
Convert a JSONArray into a nodes list. |
String |
getConf()
Return the action configuration. |
String |
getConsoleUrl()
Return the URL to the web console of the system executing the action. |
String |
getData()
Return the action data. |
Date |
getEndTime()
Return the end time of the action action. |
String |
getErrorCode()
Return the error code of the action, if it ended in ERROR. |
String |
getErrorMessage()
Return the error message of the action, if it ended in ERROR. |
String |
getExternalId()
Return the external ID of the action. |
String |
getExternalStatus()
Return the external status of the action. |
String |
getId()
Return the action action ID. |
String |
getName()
Return the action name. |
int |
getRetries()
Return the number of retries of the action. |
Date |
getStartTime()
Return the start time of the action action. |
WorkflowAction.Status |
getStatus()
Return the current status of the action action. |
String |
getTrackerUri()
Return the URL to programmatically track the status of the action. |
String |
getTransition()
Return the transition a action took. |
String |
getType()
Return the action type. |
void |
setConf(String conf)
|
void |
setConsoleUrl(String consoleUrl)
|
void |
setData(String data)
|
void |
setEndTime(Date endTime)
|
void |
setErrorInfo(String errorCode,
String errorMessage)
|
void |
setExternalId(String externalId)
|
void |
setExternalStatus(String externalStatus)
|
void |
setId(String id)
|
void |
setName(String name)
|
void |
setRetries(int retries)
|
void |
setStartTime(Date startTime)
|
void |
setStatus(WorkflowAction.Status status)
|
void |
setTrackerUri(String trackerUri)
|
void |
setTransition(String transition)
|
void |
setType(String type)
|
static org.json.simple.JSONArray |
toJSONArray(List<? extends JsonWorkflowAction> nodes)
Convert a nodes list into a JSONArray. |
org.json.simple.JSONObject |
toJSONObject()
Return the JSONObject for the bean. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JsonWorkflowAction()
public JsonWorkflowAction(org.json.simple.JSONObject jsonObject)
Method Detail |
---|
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public String getId()
WorkflowAction
getId
in interface WorkflowAction
public void setId(String id)
public String getName()
WorkflowAction
getName
in interface WorkflowAction
public void setName(String name)
public String getType()
WorkflowAction
getType
in interface WorkflowAction
public void setType(String type)
public String getConf()
WorkflowAction
getConf
in interface WorkflowAction
public void setConf(String conf)
public WorkflowAction.Status getStatus()
WorkflowAction
getStatus
in interface WorkflowAction
public void setStatus(WorkflowAction.Status status)
public int getRetries()
WorkflowAction
getRetries
in interface WorkflowAction
public void setRetries(int retries)
public Date getStartTime()
WorkflowAction
getStartTime
in interface WorkflowAction
public void setStartTime(Date startTime)
public Date getEndTime()
WorkflowAction
getEndTime
in interface WorkflowAction
public void setEndTime(Date endTime)
public String getTransition()
WorkflowAction
getTransition
in interface WorkflowAction
public void setTransition(String transition)
public String getData()
WorkflowAction
getData
in interface WorkflowAction
public void setData(String data)
public String getExternalId()
WorkflowAction
getExternalId
in interface WorkflowAction
public void setExternalId(String externalId)
public String getExternalStatus()
WorkflowAction
getExternalStatus
in interface WorkflowAction
public void setExternalStatus(String externalStatus)
public String getTrackerUri()
WorkflowAction
getTrackerUri
in interface WorkflowAction
public void setTrackerUri(String trackerUri)
public String getConsoleUrl()
WorkflowAction
getConsoleUrl
in interface WorkflowAction
public void setConsoleUrl(String consoleUrl)
public String getErrorCode()
WorkflowAction
getErrorCode
in interface WorkflowAction
public String getErrorMessage()
WorkflowAction
getErrorMessage
in interface WorkflowAction
public void setErrorInfo(String errorCode, String errorMessage)
public String toString()
toString
in class Object
public static org.json.simple.JSONArray toJSONArray(List<? extends JsonWorkflowAction> nodes)
nodes
- nodes list.
public static List<JsonWorkflowAction> fromJSONArray(org.json.simple.JSONArray array)
array
- JSON array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |