@Entity public class WorkflowJobBean extends Object implements org.apache.hadoop.io.Writable, WorkflowJob, JsonBean
WorkflowJob.Status
Constructor and Description |
---|
WorkflowJobBean()
Default constructor.
|
public WorkflowJobBean()
public void write(DataOutput dataOutput) throws IOException
write
in interface org.apache.hadoop.io.Writable
dataOutput
- data output.IOException
- thrown if the workflow bean could not be serialized.public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
dataInput
- data input.IOException
- thrown if the workflow bean could not be deserialized.public boolean inTerminalState()
public String getLogToken()
public void setLogToken(String logToken)
public void setSlaXmlBlob(StringBlob slaXml)
public StringBlob getSlaXmlBlob()
public WorkflowInstance getWorkflowInstance()
public BinaryBlob getWfInstanceBlob()
public void setWorkflowInstance(WorkflowInstance workflowInstance)
public void setWfInstanceBlob(BinaryBlob wfInstance)
public String getProtoActionConf()
public void setProtoActionConf(String protoActionConf)
public void setProtoActionConfBlob(StringBlob protoBytes)
public StringBlob getProtoActionConfBlob()
public String getlogToken()
public Timestamp getLastModifiedTimestamp()
public Timestamp getStartTimestamp()
public Timestamp getCreatedTimestamp()
public Timestamp getEndTimestamp()
public void setStatusStr(String statusStr)
public void setStatus(WorkflowJob.Status val)
public WorkflowJob.Status getStatus()
getStatus
in interface WorkflowJob
public String getStatusStr()
public void setExternalId(String externalId)
public String getExternalId()
getExternalId
in interface WorkflowJob
public void setLastModifiedTime(Date lastModifiedTime)
public Date getLastModifiedTime()
getLastModifiedTime
in interface WorkflowJob
public Date getCreatedTime()
getCreatedTime
in interface WorkflowJob
public void setCreatedTime(Date createdTime)
public Date getStartTime()
getStartTime
in interface WorkflowJob
public void setStartTime(Date startTime)
public Date getEndTime()
getEndTime
in interface WorkflowJob
public void setEndTime(Date endTime)
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 WorkflowJob
public void setAppPath(String appPath)
public String getAppName()
getAppName
in interface WorkflowJob
public void setAppName(String appName)
public String getId()
getId
in interface WorkflowJob
public String getConf()
getConf
in interface WorkflowJob
public void setConfBlob(StringBlob conf)
public StringBlob getConfBlob()
public String getUser()
getUser
in interface WorkflowJob
public String getGroup()
getGroup
in interface WorkflowJob
public String getAcl()
getAcl
in interface WorkflowJob
public int getRun()
getRun
in interface WorkflowJob
public void setRun(int run)
public String getConsoleUrl()
getConsoleUrl
in interface WorkflowJob
public String getParentId()
getParentId
in interface WorkflowJob
public void setParentId(String parentId)
parentId
- the Parent Action idpublic void setConsoleUrl(String consoleUrl)
consoleUrl
- the workflow job console URL.public List<WorkflowAction> getActions()
getActions
in interface WorkflowJob
public void setActions(List<WorkflowActionBean> nodes)
public static org.json.simple.JSONArray toJSONArray(List<WorkflowJobBean> workflows, String timeZoneId)
workflows
- workflows list.timeZoneId
- time zone to use for dates in the JSON array.Copyright © 2018 Apache Software Foundation. All rights reserved.