@Entity public class JsonWorkflowAction extends Object implements org.apache.oozie.client.WorkflowAction, JsonBean
Constructor and Description |
---|
JsonWorkflowAction() |
Modifier and Type | Method and Description |
---|---|
String |
getConf() |
String |
getConsoleUrl() |
String |
getCred() |
String |
getData() |
Date |
getEndTime() |
String |
getErrorCode() |
String |
getErrorMessage() |
String |
getExternalChildIDs() |
String |
getExternalId() |
String |
getExternalStatus() |
String |
getId() |
String |
getName() |
int |
getRetries() |
Date |
getStartTime() |
String |
getStats() |
org.apache.oozie.client.WorkflowAction.Status |
getStatus() |
String |
getTrackerUri() |
String |
getTransition() |
String |
getType() |
int |
getUserRetryCount() |
int |
getUserRetryInterval() |
int |
getUserRetryMax() |
void |
incrmentUserRetryCount() |
void |
setConf(String conf) |
void |
setConsoleUrl(String consoleUrl) |
void |
setCred(String cred) |
void |
setData(String data) |
void |
setEndTime(Date endTime) |
void |
setErrorInfo(String errorCode,
String errorMessage) |
void |
setExternalChildIDs(String externalChildIDs) |
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 |
setStats(String stats) |
void |
setStatus(org.apache.oozie.client.WorkflowAction.Status status) |
void |
setTrackerUri(String trackerUri) |
void |
setTransition(String transition) |
void |
setType(String type) |
void |
setUserRetryCount(int retryCount) |
void |
setUserRetryInterval(int retryInterval) |
void |
setUserRetryMax(int retryMax) |
static org.json.simple.JSONArray |
toJSONArray(List<? extends JsonWorkflowAction> nodes,
String timeZoneId)
Convert a nodes list into a JSONArray.
|
org.json.simple.JSONObject |
toJSONObject()
Return the JSONObject for the bean with GMT time zone.
|
org.json.simple.JSONObject |
toJSONObject(String timeZoneId)
Return the JSONObject for the bean with the given time zone.
|
String |
toString() |
public JsonWorkflowAction()
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBean
toJSONObject
in interface JsonBean
timeZoneId
- the time zone to usepublic String getName()
getName
in interface org.apache.oozie.client.WorkflowAction
public String getCred()
getCred
in interface org.apache.oozie.client.WorkflowAction
public String getType()
getType
in interface org.apache.oozie.client.WorkflowAction
public String getConf()
getConf
in interface org.apache.oozie.client.WorkflowAction
public org.apache.oozie.client.WorkflowAction.Status getStatus()
getStatus
in interface org.apache.oozie.client.WorkflowAction
public void setStatus(org.apache.oozie.client.WorkflowAction.Status status)
public int getRetries()
getRetries
in interface org.apache.oozie.client.WorkflowAction
public void setRetries(int retries)
public int getUserRetryCount()
getUserRetryCount
in interface org.apache.oozie.client.WorkflowAction
public void setUserRetryCount(int retryCount)
public void incrmentUserRetryCount()
public int getUserRetryMax()
getUserRetryMax
in interface org.apache.oozie.client.WorkflowAction
public void setUserRetryMax(int retryMax)
public int getUserRetryInterval()
getUserRetryInterval
in interface org.apache.oozie.client.WorkflowAction
public void setUserRetryInterval(int retryInterval)
public Date getStartTime()
getStartTime
in interface org.apache.oozie.client.WorkflowAction
public void setStartTime(Date startTime)
public Date getEndTime()
getEndTime
in interface org.apache.oozie.client.WorkflowAction
public void setEndTime(Date endTime)
public String getTransition()
getTransition
in interface org.apache.oozie.client.WorkflowAction
public void setTransition(String transition)
public String getData()
getData
in interface org.apache.oozie.client.WorkflowAction
public String getStats()
getStats
in interface org.apache.oozie.client.WorkflowAction
public String getExternalChildIDs()
getExternalChildIDs
in interface org.apache.oozie.client.WorkflowAction
public void setExternalChildIDs(String externalChildIDs)
public String getExternalId()
getExternalId
in interface org.apache.oozie.client.WorkflowAction
public void setExternalId(String externalId)
public String getExternalStatus()
getExternalStatus
in interface org.apache.oozie.client.WorkflowAction
public void setExternalStatus(String externalStatus)
public String getTrackerUri()
getTrackerUri
in interface org.apache.oozie.client.WorkflowAction
public void setTrackerUri(String trackerUri)
public String getConsoleUrl()
getConsoleUrl
in interface org.apache.oozie.client.WorkflowAction
public void setConsoleUrl(String consoleUrl)
public String getErrorCode()
getErrorCode
in interface org.apache.oozie.client.WorkflowAction
public String getErrorMessage()
getErrorMessage
in interface org.apache.oozie.client.WorkflowAction
public void setErrorInfo(String errorCode, String errorMessage)
public static org.json.simple.JSONArray toJSONArray(List<? extends JsonWorkflowAction> nodes, String timeZoneId)
nodes
- nodes list.timeZoneId
- time zone to use for dates in the JSON array.Copyright © 2015 Apache Software Foundation. All Rights Reserved.