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