BundleJob.Timeunit
Job.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 BundleJob
public String getTimeUnitStr()
public int getPending()
public void setPending()
setPending
in interface Job
public void setPending(int pending)
pending
- set pending valuepublic void resetPending()
resetPending
in interface Job
public 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.Writable
IOException
public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public Date getEndTime()
getEndTime
in interface Job
public Date getKickoffTime()
getKickoffTime
in interface BundleJob
public BundleJob.Timeunit getTimeUnit()
getTimeUnit
in interface BundleJob
public void setEndTime(Date endTime)
public void setKickoffTime(Date kickoffTime)
public Date getPauseTime()
getPauseTime
in interface Job
public void setPauseTime(Date pauseTime)
public void setSuspendedTime(Date suspendTime)
suspendTime
- the suspendTimepublic org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBean
toJSONObject
in interface JsonBean
timeZoneId
- the time zone to usepublic String getAppName()
getAppName
in interface Job
public String getAppPath()
getAppPath
in interface Job
public String getConsoleUrl()
getConsoleUrl
in interface Job
public List<CoordinatorJob> getCoordinators()
getCoordinators
in interface BundleJob
@Deprecated public String getGroup()
public int getTimeout()
getTimeout
in interface BundleJob
public void setAppPath(String bundlePath)
bundlePath
- the bundlePath to setpublic void setAppName(String bundleName)
bundleName
- the bundleName to setpublic String getExternalId()
getExternalId
in interface Job
public 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 Job
public boolean isTerminalStatus()
Copyright © 2018 Apache Software Foundation. All rights reserved.