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, 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
CoordinatorJob.Execution, CoordinatorJob.Status, CoordinatorJob.Timeunit
 
Constructor Summary
CoordinatorJobBean()
           
 
Method Summary
 String getAuthToken()
           
 Date getCreatedTime()
           
 Timestamp getCreatedTimestamp()
           
 Date getEndTime()
          Return the application end time.
 Timestamp getEndTimestamp()
           
 String getExecution()
           
 CoordinatorJob.Execution getExecutionOrder()
          Return the execution order policy for the coord job
 String getJobXml()
           
 Date getLastActionTime()
          Return the date for the last action of the coord job
 Timestamp getLastActionTimestamp()
           
 Date getLastModifiedTime()
           
 Timestamp getLastModifiedTimestamp()
           
 Date getNextMaterializedTime()
          Return the application next materialized time.
 Timestamp getNextMaterializedTimestamp()
           
 String getOrigJobXml()
           
 Date getPauseTime()
           
 String getSlaXml()
           
 Date getStartTime()
          Return the application start time.
 Timestamp getStartTimestamp()
           
 CoordinatorJob.Status getStatus()
          Return the application status.
 String getStatusStr()
           
 Date getSuspendedTime()
           
 Timestamp getSuspendedTimestamp()
           
 CoordinatorJob.Timeunit getTimeUnit()
          Return the timeUnit for the coord job, it could be, Timeunit enum, e.g.
 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(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(CoordinatorJob.Status val)
           
 void setSuspendedTime(Date suspendedTime)
           
 void setSuspendedTimestamp(Timestamp suspendedTimestamp)
           
 void setTimeUnit(CoordinatorJob.Timeunit timeUnit)
           
 void write(DataOutput dataOutput)
           
 
Methods inherited from class org.apache.oozie.client.rest.JsonCoordinatorJob
fromJSONArray, 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(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 CoordinatorJob.Status getStatus()
Description copied from interface: CoordinatorJob
Return the application status.

Specified by:
getStatus in interface CoordinatorJob
Overrides:
getStatus in class JsonCoordinatorJob
Returns:
the application status.

getStatusStr

public String getStatusStr()

setStatus

public void setStatus(CoordinatorJob.Status val)
Overrides:
setStatus in class JsonCoordinatorJob

getTimeUnitStr

public String getTimeUnitStr()

getTimeUnit

public CoordinatorJob.Timeunit getTimeUnit()
Description copied from interface: CoordinatorJob
Return the timeUnit for the coord job, it could be, Timeunit enum, e.g. MINUTE, HOUR, DAY, WEEK or MONTH

Specified by:
getTimeUnit in interface CoordinatorJob
Overrides:
getTimeUnit in class JsonCoordinatorJob
Returns:
the time unit for the coord job

setExecution

public void setExecution(CoordinatorJob.Execution order)

getExecutionOrder

public CoordinatorJob.Execution getExecutionOrder()
Description copied from interface: CoordinatorJob
Return the execution order policy for the coord job

Specified by:
getExecutionOrder in interface CoordinatorJob
Overrides:
getExecutionOrder in class JsonCoordinatorJob
Returns:
the execution order policy for the coord job

getExecution

public String getExecution()

setLastActionTime

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

getLastActionTime

public Date getLastActionTime()
Description copied from interface: CoordinatorJob
Return the date for the last action of the coord job

Specified by:
getLastActionTime in interface CoordinatorJob
Overrides:
getLastActionTime in class JsonCoordinatorJob
Returns:
the date for the last action of the coord job

getLastActionTimestamp

public Timestamp getLastActionTimestamp()

setNextMaterializedTime

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

getNextMaterializedTime

public Date getNextMaterializedTime()
Description copied from interface: CoordinatorJob
Return the application next materialized time.

Specified by:
getNextMaterializedTime in interface CoordinatorJob
Overrides:
getNextMaterializedTime in class JsonCoordinatorJob
Returns:
the application next materialized time.

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()
Description copied from interface: CoordinatorJob
Return the application start time.

Specified by:
getStartTime in interface CoordinatorJob
Overrides:
getStartTime in class JsonCoordinatorJob
Returns:
the application start time.

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()
Description copied from interface: CoordinatorJob
Return the application end time.

Specified by:
getEndTime in interface CoordinatorJob
Overrides:
getEndTime in class JsonCoordinatorJob
Returns:
the application end time.

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 © 2011 Yahoo. All Rights Reserved.