@Entity public class BundleJobBean extends Object implements org.apache.hadoop.io.Writable, org.apache.oozie.client.BundleJob, JsonBean
| Constructor and Description |
|---|
BundleJobBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAcl() |
String |
getAppName() |
String |
getAppPath() |
String |
getConf() |
StringBlob |
getConfBlob() |
String |
getConsoleUrl() |
List<org.apache.oozie.client.CoordinatorJob> |
getCoordinators() |
Date |
getCreatedTime() |
Timestamp |
getCreatedTimestamp() |
Date |
getEndTime() |
Timestamp |
getEndTimestamp() |
String |
getExternalId()
Return externalId
|
String |
getGroup()
Deprecated.
|
String |
getId() |
String |
getJobXml() |
StringBlob |
getJobXmlBlob() |
Date |
getKickoffTime() |
Timestamp |
getKickoffTimestamp() |
Date |
getLastModifiedTime()
Get last modified time
|
Timestamp |
getLastModifiedTimestamp() |
String |
getOrigJobXml() |
StringBlob |
getOrigJobXmlBlob() |
Date |
getPauseTime() |
Timestamp |
getPauseTimestamp() |
int |
getPending() |
Date |
getStartTime() |
Timestamp |
getstartTimestamp() |
org.apache.oozie.client.Job.Status |
getStatus() |
String |
getStatusStr() |
Timestamp |
getSuspendedTimestamp() |
int |
getTimeout() |
org.apache.oozie.client.BundleJob.Timeunit |
getTimeUnit() |
String |
getTimeUnitStr() |
String |
getUser() |
boolean |
isPending()
Return if the action is pending.
|
boolean |
isTerminalStatus() |
void |
readFields(DataInput dataInput) |
void |
resetPending()
Set pending to false
|
void |
setAppName(String bundleName)
Set bundleName
|
void |
setAppPath(String bundlePath)
Set bundlePath
|
void |
setConf(String conf)
Set conf
|
void |
setConfBlob(StringBlob conf) |
void |
setConsoleUrl(String consoleUrl)
Set consoleUrl
|
void |
setCoordJobs(List<CoordinatorJobBean> coordJobs)
Set coordJobs
|
void |
setCreatedTime(Date createTime) |
void |
setEndTime(Date endTime) |
void |
setEndTimestamp(Timestamp endTimestamp) |
void |
setExternalId(String externalId)
Set externalId
|
void |
setGroup(String group)
Set group
|
void |
setId(String id)
Set id
|
void |
setJobXml(String jobXml) |
void |
setJobXmlBlob(StringBlob jobXmlBlob) |
void |
setKickoffTime(Date kickoffTime) |
void |
setKickoffTimestamp(Timestamp kickoffTimestamp) |
void |
setLastModifiedTime(Date lastModifiedTime) |
void |
setLastModifiedTimestamp(Timestamp lastModifiedTimestamp) |
void |
setOrigJobXml(String origJobXml) |
void |
setOrigJobXmlBlob(StringBlob origJobXml) |
void |
setPauseTime(Date pauseTime) |
void |
setPauseTimestamp(Timestamp pauseTimestamp) |
void |
setPending()
Set pending to true
|
void |
setPending(int i)
Set pending value
|
void |
setStartTime(Date startTime)
Set startTime
|
void |
setStartTimestamp(Timestamp startTimestamp) |
void |
setStatus(org.apache.oozie.client.Job.Status status)
Set status
|
void |
setStatus(String statusStr)
Set status
|
void |
setSuspendedTime(Date suspendTime) |
void |
setSuspendedTimestamp(Timestamp suspendedTimestamp) |
void |
setTimeOut(int timeOut)
Set timeOut
|
void |
setTimeUnit(org.apache.oozie.client.BundleJob.Timeunit timeUnit)
Set timeUnit
|
void |
setUser(String user)
Set user
|
static org.json.simple.JSONArray |
toJSONArray(List<BundleJobBean> applications,
String timeZoneId)
Convert a Bundle job list into a JSONArray.
|
org.json.simple.JSONObject |
toJSONObject()
Return the JSONObject for the bean with GMT time zone.
|
org.json.simple.JSONObject |
toJSONObject(String timeZoneId)
Return the JSONObject for the bean with the given time zone.
|
String |
toString() |
void |
write(DataOutput dataOutput) |
public BundleJobBean()
public Timestamp getKickoffTimestamp()
public Timestamp getstartTimestamp()
public void setKickoffTimestamp(Timestamp kickoffTimestamp)
kickoffTimestamp - the kickoffTimestamp to setpublic void setStartTimestamp(Timestamp startTimestamp)
startTimestamp - the startTimestamp to setpublic void setStartTime(Date startTime)
startTime - the startTime to setpublic Timestamp getEndTimestamp()
public void setEndTimestamp(Timestamp endTimestamp)
endTimestamp - the endTimestamp to setpublic Timestamp getPauseTimestamp()
public void setPauseTimestamp(Timestamp pauseTimestamp)
pauseTimestamp - the pauseTimestamp to setpublic Timestamp getCreatedTimestamp()
public Date getCreatedTime()
getCreatedTime in interface org.apache.oozie.client.BundleJobpublic String getTimeUnitStr()
public int getPending()
public void setPending()
setPending in interface org.apache.oozie.client.Jobpending - set pending to truepublic void setPending(int i)
pending - set pending valuepublic void resetPending()
resetPending in interface org.apache.oozie.client.Jobpending - set pending to falsepublic boolean isPending()
public Timestamp getLastModifiedTimestamp()
public void setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
lastModifiedTimestamp - the lastModifiedTimestamp to setpublic Timestamp getSuspendedTimestamp()
public void setSuspendedTimestamp(Timestamp suspendedTimestamp)
suspendedTimestamp - the suspendedTimestamp to setpublic void setJobXmlBlob(StringBlob jobXmlBlob)
public StringBlob getJobXmlBlob()
public String getOrigJobXml()
public void setOrigJobXml(String origJobXml)
origJobXml - the origJobXml to setpublic void setOrigJobXmlBlob(StringBlob origJobXml)
public StringBlob getOrigJobXmlBlob()
public void setCreatedTime(Date createTime)
createTime - the createdTime to setpublic void setLastModifiedTime(Date lastModifiedTime)
lastModifiedTime - public Date getLastModifiedTime()
public void write(DataOutput dataOutput) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput dataInput) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic Date getEndTime()
getEndTime in interface org.apache.oozie.client.Jobpublic Date getKickoffTime()
getKickoffTime in interface org.apache.oozie.client.BundleJobpublic org.apache.oozie.client.BundleJob.Timeunit getTimeUnit()
getTimeUnit in interface org.apache.oozie.client.BundleJobpublic void setEndTime(Date endTime)
public void setKickoffTime(Date kickoffTime)
public Date getPauseTime()
getPauseTime in interface org.apache.oozie.client.Jobpublic void setPauseTime(Date pauseTime)
public void setSuspendedTime(Date suspendTime)
return - the suspendTimepublic org.json.simple.JSONObject toJSONObject()
JsonBeantoJSONObject in interface JsonBeanpublic org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBeantoJSONObject in interface JsonBeantimeZoneId - the time zone to usepublic String getAppName()
getAppName in interface org.apache.oozie.client.Jobpublic String getAppPath()
getAppPath in interface org.apache.oozie.client.Jobpublic String getConsoleUrl()
getConsoleUrl in interface org.apache.oozie.client.Jobpublic List<org.apache.oozie.client.CoordinatorJob> getCoordinators()
getCoordinators in interface org.apache.oozie.client.BundleJob@Deprecated public String getGroup()
getGroup in interface org.apache.oozie.client.Jobpublic int getTimeout()
getTimeout in interface org.apache.oozie.client.BundleJobpublic void setAppPath(String bundlePath)
bundlePath - the bundlePath to setpublic void setAppName(String bundleName)
bundleName - the bundleName to setpublic String getExternalId()
getExternalId in interface org.apache.oozie.client.Jobpublic void setExternalId(String externalId)
externalId - the externalId to setpublic void setConfBlob(StringBlob conf)
public StringBlob getConfBlob()
public void setStatus(org.apache.oozie.client.Job.Status status)
setStatus in interface org.apache.oozie.client.Jobstatus - the status to setpublic org.apache.oozie.client.Job.Status getStatus()
getStatus in interface org.apache.oozie.client.Jobpublic String getStatusStr()
public void setTimeUnit(org.apache.oozie.client.BundleJob.Timeunit timeUnit)
timeUnit - the timeUnit to setpublic void setTimeOut(int timeOut)
timeOut - the timeOut to setpublic void setConsoleUrl(String consoleUrl)
consoleUrl - the consoleUrl to setpublic void setCoordJobs(List<CoordinatorJobBean> coordJobs)
coordJobs - the coordJobs to setpublic static org.json.simple.JSONArray toJSONArray(List<BundleJobBean> applications, String timeZoneId)
application - list.timeZoneId - time zone to use for dates in the JSON array.public Date getStartTime()
getStartTime in interface org.apache.oozie.client.Jobpublic boolean isTerminalStatus()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.