BundleJob.TimeunitJob.Status| Constructor and Description |
|---|
BundleJobBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAcl() |
String |
getAppName() |
String |
getAppPath() |
String |
getConf() |
StringBlob |
getConfBlob() |
String |
getConsoleUrl() |
List<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() |
Job.Status |
getStatus() |
String |
getStatusStr() |
Timestamp |
getSuspendedTimestamp() |
int |
getTimeout() |
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(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(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 BundleJobpublic String getTimeUnitStr()
public int getPending()
public void setPending()
setPending in interface Jobpending - set pending to truepublic void setPending(int i)
pending - set pending valuepublic void resetPending()
resetPending in interface 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 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)
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 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 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)
application - list.timeZoneId - time zone to use for dates in the JSON array.public Date getStartTime()
getStartTime in interface Jobpublic boolean isTerminalStatus()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.