org.apache.oozie
Class WorkflowJobBean
java.lang.Object
org.apache.oozie.client.rest.JsonWorkflowJob
org.apache.oozie.WorkflowJobBean
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, JsonBean, WorkflowJob
public class WorkflowJobBean
- extends JsonWorkflowJob
- implements org.apache.hadoop.io.Writable
Methods inherited from class org.apache.oozie.client.rest.JsonWorkflowJob |
fromJSONArray, getActions, getAppName, getAppPath, getConf, getConsoleUrl, getGroup, getId, getRun, getUser, setActions, setConsoleUrl, setGroup, setId, setRun, setUser, toJSONArray, toJSONObject, toString |
WorkflowJobBean
public WorkflowJobBean()
- Default constructor.
write
public void write(DataOutput dataOutput)
throws IOException
- Serialize the workflow bean to a data output.
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Parameters:
dataOutput
- data output.
- Throws:
IOException
- thrown if the workflow bean could not be serialized.
readFields
public void readFields(DataInput dataInput)
throws IOException
- Deserialize a workflow bean from a data input.
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Parameters:
dataInput
- data input.
- Throws:
IOException
- thrown if the workflow bean could not be deserialized.
getAuthToken
public String getAuthToken()
setAuthToken
public void setAuthToken(String authToken)
getLogToken
public String getLogToken()
setLogToken
public void setLogToken(String logToken)
getSlaXml
public String getSlaXml()
setSlaXml
public void setSlaXml(String slaXml)
getWorkflowInstance
public WorkflowInstance getWorkflowInstance()
getWfInstance
public byte[] getWfInstance()
setWorkflowInstance
public void setWorkflowInstance(WorkflowInstance workflowInstance)
setWfInstance
public void setWfInstance(byte[] wfInstance)
setWfInstance
public void setWfInstance(WorkflowInstance wfInstance)
getProtoActionConf
public String getProtoActionConf()
setProtoActionConf
public void setProtoActionConf(String protoActionConf)
getprotoActionConf
public String getprotoActionConf()
getlogToken
public String getlogToken()
getStatusStr
public String getStatusStr()
getLastModifiedTimestamp
public Timestamp getLastModifiedTimestamp()
getStartTimestamp
public Timestamp getStartTimestamp()
getCreatedTimestamp
public Timestamp getCreatedTimestamp()
getEndTimestamp
public Timestamp getEndTimestamp()
setAppName
public void setAppName(String val)
- Overrides:
setAppName
in class JsonWorkflowJob
setAppPath
public void setAppPath(String val)
- Overrides:
setAppPath
in class JsonWorkflowJob
setConf
public void setConf(String val)
- Overrides:
setConf
in class JsonWorkflowJob
setStatus
public void setStatus(WorkflowJob.Status val)
- Overrides:
setStatus
in class JsonWorkflowJob
getStatus
public WorkflowJob.Status getStatus()
- Description copied from interface:
WorkflowJob
- Return the workflow job status.
- Specified by:
getStatus
in interface WorkflowJob
- Overrides:
getStatus
in class JsonWorkflowJob
- Returns:
- the workflow job status.
setExternalId
public void setExternalId(String externalId)
- Overrides:
setExternalId
in class JsonWorkflowJob
getExternalId
public String getExternalId()
- Overrides:
getExternalId
in class JsonWorkflowJob
setLastModifiedTime
public void setLastModifiedTime(Date lastModifiedTime)
- Overrides:
setLastModifiedTime
in class JsonWorkflowJob
getLastModifiedTime
public Date getLastModifiedTime()
- Description copied from interface:
WorkflowJob
- Return the workflow job last modified time.
- Specified by:
getLastModifiedTime
in interface WorkflowJob
- Overrides:
getLastModifiedTime
in class JsonWorkflowJob
- Returns:
- the workflow job last modified time.
getCreatedTime
public Date getCreatedTime()
- Description copied from interface:
WorkflowJob
- Return the workflow job creation time.
- Specified by:
getCreatedTime
in interface WorkflowJob
- Overrides:
getCreatedTime
in class JsonWorkflowJob
- Returns:
- the workflow job creation time.
setCreatedTime
public void setCreatedTime(Date createdTime)
- Overrides:
setCreatedTime
in class JsonWorkflowJob
getStartTime
public Date getStartTime()
- Description copied from interface:
WorkflowJob
- Return the workflow job start time.
- Specified by:
getStartTime
in interface WorkflowJob
- Overrides:
getStartTime
in class JsonWorkflowJob
- Returns:
- the workflow job start time.
setStartTime
public void setStartTime(Date startTime)
- Overrides:
setStartTime
in class JsonWorkflowJob
getEndTime
public Date getEndTime()
- Description copied from interface:
WorkflowJob
- Return the workflow job end time.
- Specified by:
getEndTime
in interface WorkflowJob
- Overrides:
getEndTime
in class JsonWorkflowJob
- Returns:
- the workflow job end time.
setEndTime
public void setEndTime(Date endTime)
- Overrides:
setEndTime
in class JsonWorkflowJob
Copyright © 2011 Yahoo. All Rights Reserved.