BundleJob.TimeunitJob.Status| Constructor and Description |
|---|
BundleJobBean() |
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 BundleJobpublic String getTimeUnitStr()
public int getPending()
public void setPending()
setPending in interface Jobpublic void setPending(int pending)
pending - set pending valuepublic void resetPending()
resetPending in interface Jobpublic 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 - the lastModifiedTime to setpublic 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 Jobpublic Date getKickoffTime()
getKickoffTime in interface BundleJobpublic BundleJob.Timeunit getTimeUnit()
getTimeUnit in interface BundleJobpublic void setEndTime(Date endTime)
public void setKickoffTime(Date kickoffTime)
public Date getPauseTime()
getPauseTime in interface Jobpublic void setPauseTime(Date pauseTime)
public void setSuspendedTime(Date suspendTime)
suspendTime - 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 Jobpublic String getAppPath()
getAppPath in interface Jobpublic String getConsoleUrl()
getConsoleUrl in interface Jobpublic List<CoordinatorJob> getCoordinators()
getCoordinators in interface BundleJob@Deprecated public String getGroup()
public int getTimeout()
getTimeout in interface BundleJobpublic void setAppPath(String bundlePath)
bundlePath - the bundlePath to setpublic void setAppName(String bundleName)
bundleName - the bundleName to setpublic String getExternalId()
getExternalId in interface Jobpublic void setExternalId(String externalId)
externalId - the externalId to setpublic void setConfBlob(StringBlob conf)
public StringBlob getConfBlob()
public void setStatus(Job.Status status)
public Job.Status getStatus()
public void setStatus(String statusStr)
statusStr - the status to setpublic String getStatusStr()
public void setTimeUnit(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)
applications - list of applications.timeZoneId - time zone to use for dates in the JSON array.public Date getStartTime()
getStartTime in interface Jobpublic boolean isTerminalStatus()
Copyright © 2018 Apache Software Foundation. All rights reserved.