@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.WritabledataOutput - 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.WritabledataInput - 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 WorkflowJobpublic String getStatusStr()
public void setExternalId(String externalId)
public String getExternalId()
getExternalId in interface WorkflowJobpublic void setLastModifiedTime(Date lastModifiedTime)
public Date getLastModifiedTime()
getLastModifiedTime in interface WorkflowJobpublic Date getCreatedTime()
getCreatedTime in interface WorkflowJobpublic void setCreatedTime(Date createdTime)
public Date getStartTime()
getStartTime in interface WorkflowJobpublic void setStartTime(Date startTime)
public Date getEndTime()
getEndTime in interface WorkflowJobpublic void setEndTime(Date endTime)
public org.json.simple.JSONObject toJSONObject()
JsonBeantoJSONObject in interface JsonBeanpublic org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBeantoJSONObject in interface JsonBeantimeZoneId - the time zone to usepublic String getAppPath()
getAppPath in interface WorkflowJobpublic void setAppPath(String appPath)
public String getAppName()
getAppName in interface WorkflowJobpublic void setAppName(String appName)
public String getId()
getId in interface WorkflowJobpublic String getConf()
getConf in interface WorkflowJobpublic void setConfBlob(StringBlob conf)
public StringBlob getConfBlob()
public String getUser()
getUser in interface WorkflowJobpublic String getGroup()
getGroup in interface WorkflowJobpublic String getAcl()
getAcl in interface WorkflowJobpublic int getRun()
getRun in interface WorkflowJobpublic void setRun(int run)
public String getConsoleUrl()
getConsoleUrl in interface WorkflowJobpublic String getParentId()
getParentId in interface WorkflowJobpublic void setParentId(String parentId)
parentId - : coordinator action idpublic void setConsoleUrl(String consoleUrl)
consoleUrl - the workflow job console URL.public List<WorkflowAction> getActions()
getActions in interface WorkflowJobpublic 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 © 2015 Apache Software Foundation. All Rights Reserved.