org.apache.oozie
Class CoordinatorJobBean

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonCoordinatorJob
      extended by org.apache.oozie.CoordinatorJobBean
All Implemented Interfaces:
org.apache.hadoop.io.Writable, org.apache.oozie.client.CoordinatorJob, JsonBean

public class CoordinatorJobBean
extends JsonCoordinatorJob
implements org.apache.hadoop.io.Writable


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.CoordinatorJob
org.apache.oozie.client.CoordinatorJob.Execution, org.apache.oozie.client.CoordinatorJob.Status, org.apache.oozie.client.CoordinatorJob.Timeunit
 
Constructor Summary
CoordinatorJobBean()
           
 
Method Summary
 String getAuthToken()
           
 Date getCreatedTime()
           
 Timestamp getCreatedTimestamp()
           
 Date getEndTime()
           
 Timestamp getEndTimestamp()
           
 String getExecution()
           
 org.apache.oozie.client.CoordinatorJob.Execution getExecutionOrder()
           
 String getJobXml()
           
 Date getLastActionTime()
           
 Timestamp getLastActionTimestamp()
           
 Date getLastModifiedTime()
           
 Timestamp getLastModifiedTimestamp()
           
 Date getNextMaterializedTime()
           
 Timestamp getNextMaterializedTimestamp()
           
 String getOrigJobXml()
           
 Date getPauseTime()
           
 String getSlaXml()
           
 Date getStartTime()
           
 Timestamp getStartTimestamp()
           
 org.apache.oozie.client.CoordinatorJob.Status getStatus()
           
 String getStatusStr()
           
 Date getSuspendedTime()
           
 Timestamp getSuspendedTimestamp()
           
 org.apache.oozie.client.CoordinatorJob.Timeunit getTimeUnit()
           
 String getTimeUnitStr()
           
 void readFields(DataInput dataInput)
          Deserialize a coordinator bean from a data input.
 void setAuthToken(String authToken)
           
 void setCreatedTime(Date createTime)
           
 void setEndTime(Date endTime)
           
 void setEndTimestamp(Timestamp endTimestamp)
           
 void setExecution(org.apache.oozie.client.CoordinatorJob.Execution order)
           
 void setExecution(String execution)
           
 void setJobXml(String jobXml)
           
 void setLastActionTime(Date lastAction)
           
 void setLastActionTimestamp(Timestamp lastActionTimestamp)
           
 void setLastModifiedTime(Date lastModifiedTime)
           
 void setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
           
 void setNextMaterializedTime(Date nextMaterializedTime)
           
 void setNextMaterializedTimestamp(Timestamp nextMaterializedTimestamp)
           
 void setOrigJobXml(String origJobXml)
           
 void setPauseTime(Date pauseTime)
           
 void setSlaXml(String slaXml)
           
 void setStartTime(Date startTime)
           
 void setStartTimestamp(Timestamp startTimestamp)
           
 void setStatus(org.apache.oozie.client.CoordinatorJob.Status val)
           
 void setSuspendedTime(Date suspendedTime)
           
 void setSuspendedTimestamp(Timestamp suspendedTimestamp)
           
 void setTimeUnit(org.apache.oozie.client.CoordinatorJob.Timeunit timeUnit)
           
 void write(DataOutput dataOutput)
           
 
Methods inherited from class org.apache.oozie.client.rest.JsonCoordinatorJob
getActions, getAppName, getAppPath, getBundleId, getConcurrency, getConf, getConsoleUrl, getExternalId, getFrequency, getGroup, getId, getLastActionNumber, getTimeout, getTimeZone, getUser, setActions, setAppName, setAppPath, setBundleId, setConcurrency, setConf, setConsoleUrl, setExecutionOrder, setExternalId, setFrequency, setGroup, setId, setLastActionNumber, setTimeout, setTimeZone, setUser, toJSONArray, toJSONObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinatorJobBean

public CoordinatorJobBean()
Method Detail

getStartTimestamp

public Timestamp getStartTimestamp()

setStartTimestamp

public void setStartTimestamp(Timestamp startTimestamp)

getEndTimestamp

public Timestamp getEndTimestamp()

setEndTimestamp

public void setEndTimestamp(Timestamp endTimestamp)

getNextMaterializedTimestamp

public Timestamp getNextMaterializedTimestamp()

setNextMaterializedTimestamp

public void setNextMaterializedTimestamp(Timestamp nextMaterializedTimestamp)

getLastModifiedTimestamp

public Timestamp getLastModifiedTimestamp()

setLastModifiedTimestamp

public void setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)

getSuspendedTimestamp

public Timestamp getSuspendedTimestamp()

setSuspendedTimestamp

public void setSuspendedTimestamp(Timestamp suspendedTimestamp)

getJobXml

public String getJobXml()

setJobXml

public void setJobXml(String jobXml)

getOrigJobXml

public String getOrigJobXml()

setOrigJobXml

public void setOrigJobXml(String origJobXml)

getSlaXml

public String getSlaXml()

setSlaXml

public void setSlaXml(String slaXml)

setTimeUnit

public void setTimeUnit(org.apache.oozie.client.CoordinatorJob.Timeunit timeUnit)
Overrides:
setTimeUnit in class JsonCoordinatorJob

setExecution

public void setExecution(String execution)

setLastActionTimestamp

public void setLastActionTimestamp(Timestamp lastActionTimestamp)

setAuthToken

public void setAuthToken(String authToken)

write

public void write(DataOutput dataOutput)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput dataInput)
                throws IOException
Deserialize a coordinator 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.

getStatus

public org.apache.oozie.client.CoordinatorJob.Status getStatus()
Specified by:
getStatus in interface org.apache.oozie.client.CoordinatorJob
Overrides:
getStatus in class JsonCoordinatorJob

getStatusStr

public String getStatusStr()

setStatus

public void setStatus(org.apache.oozie.client.CoordinatorJob.Status val)
Overrides:
setStatus in class JsonCoordinatorJob

getTimeUnitStr

public String getTimeUnitStr()

getTimeUnit

public org.apache.oozie.client.CoordinatorJob.Timeunit getTimeUnit()
Specified by:
getTimeUnit in interface org.apache.oozie.client.CoordinatorJob
Overrides:
getTimeUnit in class JsonCoordinatorJob

setExecution

public void setExecution(org.apache.oozie.client.CoordinatorJob.Execution order)

getExecutionOrder

public org.apache.oozie.client.CoordinatorJob.Execution getExecutionOrder()
Specified by:
getExecutionOrder in interface org.apache.oozie.client.CoordinatorJob
Overrides:
getExecutionOrder in class JsonCoordinatorJob

getExecution

public String getExecution()

setLastActionTime

public void setLastActionTime(Date lastAction)
Overrides:
setLastActionTime in class JsonCoordinatorJob

getLastActionTime

public Date getLastActionTime()
Specified by:
getLastActionTime in interface org.apache.oozie.client.CoordinatorJob
Overrides:
getLastActionTime in class JsonCoordinatorJob

getLastActionTimestamp

public Timestamp getLastActionTimestamp()

setNextMaterializedTime

public void setNextMaterializedTime(Date nextMaterializedTime)
Overrides:
setNextMaterializedTime in class JsonCoordinatorJob

getNextMaterializedTime

public Date getNextMaterializedTime()
Specified by:
getNextMaterializedTime in interface org.apache.oozie.client.CoordinatorJob
Overrides:
getNextMaterializedTime in class JsonCoordinatorJob

setLastModifiedTime

public void setLastModifiedTime(Date lastModifiedTime)

getLastModifiedTime

public Date getLastModifiedTime()

setSuspendedTime

public void setSuspendedTime(Date suspendedTime)

getSuspendedTime

public Date getSuspendedTime()

setStartTime

public void setStartTime(Date startTime)
Overrides:
setStartTime in class JsonCoordinatorJob

getStartTime

public Date getStartTime()
Specified by:
getStartTime in interface org.apache.oozie.client.CoordinatorJob
Overrides:
getStartTime in class JsonCoordinatorJob

setEndTime

public void setEndTime(Date endTime)
Overrides:
setEndTime in class JsonCoordinatorJob

setPauseTime

public void setPauseTime(Date pauseTime)
Overrides:
setPauseTime in class JsonCoordinatorJob

getEndTime

public Date getEndTime()
Specified by:
getEndTime in interface org.apache.oozie.client.CoordinatorJob
Overrides:
getEndTime in class JsonCoordinatorJob

getPauseTime

public Date getPauseTime()
Overrides:
getPauseTime in class JsonCoordinatorJob

setCreatedTime

public void setCreatedTime(Date createTime)

getCreatedTime

public Date getCreatedTime()

getCreatedTimestamp

public Timestamp getCreatedTimestamp()

getAuthToken

public String getAuthToken()


Copyright © 2013 Yahoo. All Rights Reserved.