|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.client.rest.JsonWorkflowJob
@Entity 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 |
---|
org.apache.oozie.client.WorkflowJob.Status |
Constructor Summary | |
---|---|
JsonWorkflowJob()
|
Method Summary | |
---|---|
String |
getAcl()
|
List<org.apache.oozie.client.WorkflowAction> |
getActions()
|
String |
getAppName()
|
String |
getAppPath()
|
String |
getConf()
|
String |
getConsoleUrl()
Return the workflow job console URL. |
Date |
getCreatedTime()
|
Date |
getEndTime()
|
String |
getExternalId()
|
String |
getGroup()
|
String |
getId()
|
Date |
getLastModifiedTime()
|
String |
getParentId()
Return the corresponding Action ID, if any. |
int |
getRun()
|
Date |
getStartTime()
|
org.apache.oozie.client.WorkflowJob.Status |
getStatus()
|
String |
getUser()
|
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 |
setParentId(String parentId)
Set coordinator action id |
void |
setRun(int run)
|
void |
setStartTime(Date startTime)
|
void |
setStatus(org.apache.oozie.client.WorkflowJob.Status status)
|
void |
setUser(String user)
|
static org.json.simple.JSONArray |
toJSONArray(List<? extends JsonWorkflowJob> workflows,
String timeZoneId)
Convert a workflows 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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JsonWorkflowJob()
Method Detail |
---|
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 use
public String getAppPath()
getAppPath
in interface org.apache.oozie.client.WorkflowJob
public void setAppPath(String appPath)
public String getAppName()
getAppName
in interface org.apache.oozie.client.WorkflowJob
public void setAppName(String appName)
public String getId()
getId
in interface org.apache.oozie.client.WorkflowJob
public void setId(String id)
public void setExternalId(String externalId)
public String getExternalId()
getExternalId
in interface org.apache.oozie.client.WorkflowJob
public String getConf()
getConf
in interface org.apache.oozie.client.WorkflowJob
public void setConf(String conf)
public org.apache.oozie.client.WorkflowJob.Status getStatus()
getStatus
in interface org.apache.oozie.client.WorkflowJob
public void setStatus(org.apache.oozie.client.WorkflowJob.Status status)
public Date getLastModifiedTime()
getLastModifiedTime
in interface org.apache.oozie.client.WorkflowJob
public void setLastModifiedTime(Date lastModTime)
public Date getCreatedTime()
getCreatedTime
in interface org.apache.oozie.client.WorkflowJob
public void setCreatedTime(Date createdTime)
public Date getStartTime()
getStartTime
in interface org.apache.oozie.client.WorkflowJob
public void setStartTime(Date startTime)
public Date getEndTime()
getEndTime
in interface org.apache.oozie.client.WorkflowJob
public void setEndTime(Date endTime)
public String getUser()
getUser
in interface org.apache.oozie.client.WorkflowJob
public void setUser(String user)
public String getGroup()
getGroup
in interface org.apache.oozie.client.WorkflowJob
public String getAcl()
getAcl
in interface org.apache.oozie.client.WorkflowJob
public void setGroup(String group)
public int getRun()
getRun
in interface org.apache.oozie.client.WorkflowJob
public void setRun(int run)
public String getConsoleUrl()
getConsoleUrl
in interface org.apache.oozie.client.WorkflowJob
public String getParentId()
getParentId
in interface org.apache.oozie.client.WorkflowJob
public void setParentId(String parentId)
parentId
- : coordinator action idpublic void setConsoleUrl(String consoleUrl)
consoleUrl
- the workflow job console URL.public List<org.apache.oozie.client.WorkflowAction> getActions()
getActions
in interface org.apache.oozie.client.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, String timeZoneId)
workflows
- workflows list.timeZoneId
- time zone to use for dates in the JSON array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |