org.apache.oozie
Class BundleJobBean

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonBundleJob
      extended by org.apache.oozie.BundleJobBean
All Implemented Interfaces:
org.apache.hadoop.io.Writable, org.apache.oozie.client.BundleJob, org.apache.oozie.client.Job, JsonBean

@Entity
public class BundleJobBean
extends JsonBundleJob
implements org.apache.hadoop.io.Writable


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.BundleJob
org.apache.oozie.client.BundleJob.Timeunit
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.Job
org.apache.oozie.client.Job.Status
 
Constructor Summary
BundleJobBean()
           
 
Method Summary
 String getAuthToken()
           
 Date getCreatedTime()
          Get createdTime
 Timestamp getCreatedTimestamp()
           
 Date getEndTime()
           
 Timestamp getEndTimestamp()
           
 String getJobXml()
           
 Date getKickoffTime()
           
 Timestamp getKickoffTimestamp()
           
 Timestamp getLastModifiedTimestamp()
           
 String getOrigJobXml()
           
 Date getPauseTime()
          Get pauseTime
 Timestamp getPauseTimestamp()
           
 int getPending()
           
 Timestamp getstartTimestamp()
           
 org.apache.oozie.client.Job.Status getStatus()
           
 String getStatusStr()
           
 Timestamp getSuspendedTimestamp()
           
 org.apache.oozie.client.BundleJob.Timeunit getTimeUnit()
           
 String getTimeUnitStr()
           
 boolean isPending()
          Return if the action is pending.
 void readFields(DataInput dataInput)
           
 void resetPending()
          Set pending to false
 void setAuthToken(String authToken)
           
 void setCreatedTime(Date createTime)
          Set createdTime
 void setEndTime(Date endTime)
          Set endTime
 void setEndTimestamp(Timestamp endTimestamp)
           
 void setJobXml(String jobXml)
           
 void setKickoffTime(Date kickoffTime)
          Set kickoffTime
 void setKickoffTimestamp(Timestamp kickoffTimestamp)
           
 void setLastModifiedTime(Date lastModifiedTime)
           
 void setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
           
 void setOrigJobXml(String origJobXml)
           
 void setPauseTime(Date pauseTime)
          Set pauseTime
 void setPauseTimestamp(Timestamp pauseTimestamp)
           
 void setPending()
          Set pending to true
 void setStartTime(Date startTime)
          Set startTime
 void setStartTimestamp(Timestamp startTimestamp)
           
 void setStatus(org.apache.oozie.client.Job.Status val)
          Set status
 void setSuspendedTime(Date suspendTime)
           
 void setSuspendedTimestamp(Timestamp suspendedTimestamp)
           
 void setTimeUnit(org.apache.oozie.client.BundleJob.Timeunit timeUnit)
          Set timeUnit
 void write(DataOutput dataOutput)
           
 
Methods inherited from class org.apache.oozie.client.rest.JsonBundleJob
getAcl, getAppName, getAppPath, getConf, getConsoleUrl, getCoordinators, getExternalId, getGroup, getId, getStartTime, getTimeout, getUser, setAppName, setAppPath, setConf, setConsoleUrl, setCoordJobs, setExternalId, setGroup, setId, setTimeOut, setUser, toJSONArray, toJSONObject, toJSONObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleJobBean

public BundleJobBean()
Method Detail

getAuthToken

public String getAuthToken()
Returns:
the authToken

setAuthToken

public void setAuthToken(String authToken)
Parameters:
authToken - the authToken to set

getKickoffTimestamp

public Timestamp getKickoffTimestamp()
Returns:
the kickoffTimestamp

getstartTimestamp

public Timestamp getstartTimestamp()
Returns:
the startTimestamp

setKickoffTimestamp

public void setKickoffTimestamp(Timestamp kickoffTimestamp)
Parameters:
kickoffTimestamp - the kickoffTimestamp to set

setStartTimestamp

public void setStartTimestamp(Timestamp startTimestamp)
Parameters:
startTimestamp - the startTimestamp to set

setStartTime

public void setStartTime(Date startTime)
Set startTime

Overrides:
setStartTime in class JsonBundleJob
Parameters:
startTime - the startTime to set

getEndTimestamp

public Timestamp getEndTimestamp()
Returns:
the endTimestamp

setEndTimestamp

public void setEndTimestamp(Timestamp endTimestamp)
Parameters:
endTimestamp - the endTimestamp to set

getPauseTimestamp

public Timestamp getPauseTimestamp()
Returns:
the pauseTimestamp

setPauseTimestamp

public void setPauseTimestamp(Timestamp pauseTimestamp)
Parameters:
pauseTimestamp - the pauseTimestamp to set

getCreatedTimestamp

public Timestamp getCreatedTimestamp()
Returns:
the createdTimestamp

getCreatedTime

public Date getCreatedTime()
Description copied from class: JsonBundleJob
Get createdTime

Specified by:
getCreatedTime in interface org.apache.oozie.client.BundleJob
Overrides:
getCreatedTime in class JsonBundleJob
Returns:
the createdTime

getTimeUnitStr

public String getTimeUnitStr()
Returns:
the timeUnitStr

getPending

public int getPending()
Returns:
the pending

setPending

public void setPending()
Set pending to true

Specified by:
setPending in interface org.apache.oozie.client.Job
Overrides:
setPending in class JsonBundleJob
Parameters:
pending - set pending to true

resetPending

public void resetPending()
Set pending to false

Specified by:
resetPending in interface org.apache.oozie.client.Job
Overrides:
resetPending in class JsonBundleJob
Parameters:
pending - set pending to false

isPending

public boolean isPending()
Return if the action is pending.

Returns:
if the action is pending.

getLastModifiedTimestamp

public Timestamp getLastModifiedTimestamp()
Returns:
the lastModifiedTimestamp

setLastModifiedTimestamp

public void setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
Parameters:
lastModifiedTimestamp - the lastModifiedTimestamp to set

getSuspendedTimestamp

public Timestamp getSuspendedTimestamp()
Returns:
the suspendedTimestamp

setSuspendedTimestamp

public void setSuspendedTimestamp(Timestamp suspendedTimestamp)
Parameters:
suspendedTimestamp - the suspendedTimestamp to set

getJobXml

public String getJobXml()
Returns:
the jobXml

setJobXml

public void setJobXml(String jobXml)
Parameters:
jobXml - the jobXml to set

getOrigJobXml

public String getOrigJobXml()
Returns:
the origJobXml

setOrigJobXml

public void setOrigJobXml(String origJobXml)
Parameters:
origJobXml - the origJobXml to set

setCreatedTime

public void setCreatedTime(Date createTime)
Description copied from class: JsonBundleJob
Set createdTime

Overrides:
setCreatedTime in class JsonBundleJob
Parameters:
createTime - the createdTime to set

setLastModifiedTime

public void setLastModifiedTime(Date lastModifiedTime)
Parameters:
lastModifiedTime -

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
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

getStatus

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

getStatusStr

public String getStatusStr()
Returns:
status string

getEndTime

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

getKickoffTime

public Date getKickoffTime()
Specified by:
getKickoffTime in interface org.apache.oozie.client.BundleJob
Overrides:
getKickoffTime in class JsonBundleJob

getTimeUnit

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

setEndTime

public void setEndTime(Date endTime)
Description copied from class: JsonBundleJob
Set endTime

Overrides:
setEndTime in class JsonBundleJob
Parameters:
endTime - the endTime to set

setKickoffTime

public void setKickoffTime(Date kickoffTime)
Description copied from class: JsonBundleJob
Set kickoffTime

Overrides:
setKickoffTime in class JsonBundleJob
Parameters:
kickoffTime - the kickoffTime to set

getPauseTime

public Date getPauseTime()
Description copied from class: JsonBundleJob
Get pauseTime

Specified by:
getPauseTime in interface org.apache.oozie.client.Job
Overrides:
getPauseTime in class JsonBundleJob
Returns:
pauseTime

setPauseTime

public void setPauseTime(Date pauseTime)
Description copied from class: JsonBundleJob
Set pauseTime

Overrides:
setPauseTime in class JsonBundleJob
Parameters:
pauseTime - the pauseTime to set

setStatus

public void setStatus(org.apache.oozie.client.Job.Status val)
Description copied from class: JsonBundleJob
Set status

Specified by:
setStatus in interface org.apache.oozie.client.Job
Overrides:
setStatus in class JsonBundleJob
Parameters:
val - the status to set

setTimeUnit

public void setTimeUnit(org.apache.oozie.client.BundleJob.Timeunit timeUnit)
Description copied from class: JsonBundleJob
Set timeUnit

Overrides:
setTimeUnit in class JsonBundleJob
Parameters:
timeUnit - the timeUnit to set

setSuspendedTime

public void setSuspendedTime(Date suspendTime)
Parameters:
return - the suspendTime


Copyright © 2012 Apache Software Foundation. All Rights Reserved.