org.apache.oozie
Class WorkflowJobBean

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonWorkflowJob
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.WorkflowJob
WorkflowJob.Status
 
Constructor Summary
WorkflowJobBean()
          Default constructor.
 
Method Summary
 String getAuthToken()
           
 Date getCreatedTime()
          Return the workflow job creation time.
 Timestamp getCreatedTimestamp()
           
 Date getEndTime()
          Return the workflow job end time.
 Timestamp getEndTimestamp()
           
 String getExternalId()
           
 Date getLastModifiedTime()
          Return the workflow job last modified time.
 Timestamp getLastModifiedTimestamp()
           
 String getlogToken()
           
 String getLogToken()
           
 String getprotoActionConf()
           
 String getProtoActionConf()
           
 String getSlaXml()
           
 Date getStartTime()
          Return the workflow job start time.
 Timestamp getStartTimestamp()
           
 WorkflowJob.Status getStatus()
          Return the workflow job status.
 String getStatusStr()
           
 byte[] getWfInstance()
           
 WorkflowInstance getWorkflowInstance()
           
 void readFields(DataInput dataInput)
          Deserialize a workflow bean from a data input.
 void setAppName(String val)
           
 void setAppPath(String val)
           
 void setAuthToken(String authToken)
           
 void setConf(String val)
           
 void setCreatedTime(Date createdTime)
           
 void setEndTime(Date endTime)
           
 void setExternalId(String externalId)
           
 void setLastModifiedTime(Date lastModifiedTime)
           
 void setLogToken(String logToken)
           
 void setProtoActionConf(String protoActionConf)
           
 void setSlaXml(String slaXml)
           
 void setStartTime(Date startTime)
           
 void setStatus(WorkflowJob.Status val)
           
 void setWfInstance(byte[] wfInstance)
           
 void setWfInstance(WorkflowInstance wfInstance)
           
 void setWorkflowInstance(WorkflowInstance workflowInstance)
           
 void write(DataOutput dataOutput)
          Serialize the workflow bean to a data output.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowJobBean

public WorkflowJobBean()
Default constructor.

Method Detail

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.