@Entity public class JsonWorkflowJob extends Object implements org.apache.oozie.client.WorkflowJob, JsonBean
Constructor and Description |
---|
JsonWorkflowJob() |
Modifier and Type | Method and Description |
---|---|
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() |
public JsonWorkflowJob()
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 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 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 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 String getGroup()
getGroup
in interface org.apache.oozie.client.WorkflowJob
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 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.Copyright © 2015 Apache Software Foundation. All Rights Reserved.