|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oozie.client.rest.JsonWorkflowJob
public class JsonWorkflowJob
Json Bean that represents an Oozie workflow job.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.oozie.client.WorkflowJob |
---|
WorkflowJob.Status |
Constructor Summary | |
---|---|
JsonWorkflowJob()
|
|
JsonWorkflowJob(org.json.simple.JSONObject json)
|
Method Summary | |
---|---|
static List<WorkflowJob> |
fromJSONArray(org.json.simple.JSONArray array)
Convert a JSONArray into a workflows list. |
List<WorkflowAction> |
getActions()
Return the workflow nodes that already executed and are executing. |
String |
getAppName()
Return the name of the workflow application (from the workflow definition). |
String |
getAppPath()
Return the path to the workflow application for the workflow job. |
String |
getConf()
Return the job configuration. |
String |
getConsoleUrl()
Return the workflow job console URL. |
Date |
getCreatedTime()
Return the workflow job creation time. |
Date |
getEndTime()
Return the workflow job end time. |
String |
getExternalId()
|
String |
getGroup()
Return the workflow job group. |
String |
getId()
Return the workflow job ID. |
Date |
getLastModifiedTime()
Return the workflow job last modified time. |
int |
getRun()
Return the workflow job run number. |
Date |
getStartTime()
Return the workflow job start time. |
WorkflowJob.Status |
getStatus()
Return the workflow job status. |
String |
getUser()
Return the workflow job user owner. |
void |
setActions(List<? extends JsonWorkflowAction> nodes)
|
void |
setAppName(String appName)
|
void |
setAppPath(String appPath)
|
void |
setConf(String conf)
|
void |
setConsoleUrl(String consoleUrl)
Set the workflow job console URL. |
void |
setCreatedTime(Date createdTime)
|
void |
setEndTime(Date endTime)
|
void |
setExternalId(String externalId)
|
void |
setGroup(String group)
|
void |
setId(String id)
|
void |
setLastModifiedTime(Date lastModTime)
|
void |
setRun(int run)
|
void |
setStartTime(Date startTime)
|
void |
setStatus(WorkflowJob.Status status)
|
void |
setUser(String user)
|
static org.json.simple.JSONArray |
toJSONArray(List<? extends JsonWorkflowJob> workflows)
Convert a workflows 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 JsonWorkflowJob()
public JsonWorkflowJob(org.json.simple.JSONObject json)
Method Detail |
---|
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public String getAppPath()
WorkflowJob
getAppPath
in interface WorkflowJob
public void setAppPath(String appPath)
public String getAppName()
WorkflowJob
getAppName
in interface WorkflowJob
public void setAppName(String appName)
public String getId()
WorkflowJob
getId
in interface WorkflowJob
public void setId(String id)
public void setExternalId(String externalId)
public String getExternalId()
public String getConf()
WorkflowJob
getConf
in interface WorkflowJob
public void setConf(String conf)
public WorkflowJob.Status getStatus()
WorkflowJob
getStatus
in interface WorkflowJob
public void setStatus(WorkflowJob.Status status)
public Date getLastModifiedTime()
WorkflowJob
getLastModifiedTime
in interface WorkflowJob
public void setLastModifiedTime(Date lastModTime)
public Date getCreatedTime()
WorkflowJob
getCreatedTime
in interface WorkflowJob
public void setCreatedTime(Date createdTime)
public Date getStartTime()
WorkflowJob
getStartTime
in interface WorkflowJob
public void setStartTime(Date startTime)
public Date getEndTime()
WorkflowJob
getEndTime
in interface WorkflowJob
public void setEndTime(Date endTime)
public String getUser()
WorkflowJob
getUser
in interface WorkflowJob
public void setUser(String user)
public String getGroup()
WorkflowJob
getGroup
in interface WorkflowJob
public void setGroup(String group)
public int getRun()
WorkflowJob
getRun
in interface WorkflowJob
public void setRun(int run)
public String getConsoleUrl()
getConsoleUrl
in interface WorkflowJob
public void setConsoleUrl(String consoleUrl)
consoleUrl
- the workflow job console URL.public List<WorkflowAction> getActions()
WorkflowJob
getActions
in interface WorkflowJob
public void setActions(List<? extends JsonWorkflowAction> nodes)
public String toString()
toString
in class Object
public static org.json.simple.JSONArray toJSONArray(List<? extends JsonWorkflowJob> workflows)
workflows
- workflows list.
public static List<WorkflowJob> 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 |