@Entity public class CoordinatorJobBean extends Object implements org.apache.hadoop.io.Writable, CoordinatorJob, JsonBean
CoordinatorJob.Execution, CoordinatorJob.TimeunitJob.Status| Constructor and Description |
|---|
CoordinatorJobBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAcl() |
List<CoordinatorAction> |
getActions() |
String |
getAppName() |
String |
getAppNamespace()
Get app namespce
|
String |
getAppPath() |
String |
getBundleId() |
int |
getConcurrency() |
String |
getConf() |
StringBlob |
getConfBlob() |
String |
getConsoleUrl()
Return the coordinate application console URL.
|
Date |
getCreatedTime()
Get created time
|
Timestamp |
getCreatedTimestamp()
Get created timestamp
|
Date |
getEndTime() |
Timestamp |
getEndTimestamp()
Get end timestamp
|
String |
getExecution()
Get execution
|
CoordinatorJob.Execution |
getExecutionOrder() |
String |
getExternalId() |
String |
getFrequency() |
String |
getGroup() |
String |
getId() |
String |
getJobXml()
Get job xml
|
StringBlob |
getJobXmlBlob() |
int |
getLastActionNumber() |
Date |
getLastActionTime() |
Timestamp |
getLastActionTimestamp()
Get last action timestamp
|
Date |
getLastModifiedTime()
Get last modified time
|
Timestamp |
getLastModifiedTimestamp()
Get last modified timestamp
|
int |
getMatThrottling() |
Date |
getNextMaterializedTime() |
Timestamp |
getNextMaterializedTimestamp()
Get next materialized timestamp
|
int |
getNumActions() |
String |
getOrigJobXml()
Get original job xml
|
StringBlob |
getOrigJobXmlBlob() |
Date |
getPauseTime() |
Timestamp |
getPauseTimestamp() |
String |
getSlaXml()
Get sla xml
|
StringBlob |
getSlaXmlBlob() |
Date |
getStartTime() |
Timestamp |
getStartTimestamp()
Get start timestamp
|
Job.Status |
getStatus() |
String |
getStatusStr()
Get status
|
Date |
getSuspendedTime()
Get suspended time
|
Timestamp |
getSuspendedTimestamp()
Get suspended timestamp
|
int |
getTimeout() |
CoordinatorJob.Timeunit |
getTimeUnit() |
String |
getTimeUnitStr()
Get time unit
|
String |
getTimeZone() |
String |
getUser() |
boolean |
isDoneMaterialization()
Return if the action is done with materialization
|
boolean |
isPending()
Return if the action is pending.
|
boolean |
isTerminalStatus() |
void |
readFields(DataInput dataInput)
Deserialize a coordinator bean from a data input.
|
void |
resetDoneMaterialization()
Set doneMaterialization to false
|
void |
resetPending()
Set pending to false
|
void |
setActions(List<CoordinatorActionBean> nodes) |
void |
setAppName(String appName) |
void |
setAppNamespace(String appNamespace)
Set app namespce
|
void |
setAppPath(String appPath) |
void |
setBundleId(String bundleId) |
void |
setConcurrency(int concurrency) |
void |
setConf(String conf) |
void |
setConfBlob(StringBlob conf) |
void |
setConsoleUrl(String consoleUrl)
Set the coordinate application console URL.
|
void |
setCreatedTime(Date createTime)
Set created time
|
void |
setDoneMaterialization()
Set doneMaterialization to true
|
void |
setDoneMaterialization(int i)
Set doneMaterialization
|
void |
setEndTime(Date endTime) |
void |
setEndTimestamp(Timestamp endTimestamp)
Set end timestamp
|
void |
setExecution(String order)
Get execution
|
void |
setExecutionOrder(CoordinatorJob.Execution order)
Set order
|
void |
setExternalId(String externalId) |
void |
setFrequency(String frequency) |
void |
setGroup(String group) |
void |
setId(String id) |
void |
setJobXml(String jobXml)
Set job xml
|
void |
setJobXmlBlob(StringBlob jobXmlBlob) |
void |
setLastActionNumber(int lastActionNumber) |
void |
setLastActionTime(Date lastAction) |
void |
setLastActionTimestamp(Timestamp lastActionTimestamp)
Set last action timestamp
|
void |
setLastModifiedTime(Date lastModifiedTime)
Set last modified time
|
void |
setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
Set last modified timestamp
|
void |
setMatThrottling(int matThrottling) |
void |
setNextMaterializedTime(Date nextMaterializedTime) |
void |
setNextMaterializedTimestamp(Timestamp nextMaterializedTimestamp)
Set next materialized timestamp
|
void |
setNumActions(int numAction) |
void |
setOrigJobXml(String origJobXml)
Set original job xml
|
void |
setOrigJobXmlBlob(StringBlob origJobXml) |
void |
setPauseTime(Date pauseTime) |
void |
setPending()
Set pending to true
|
void |
setSlaXml(String slaXml)
Set sla xml
|
void |
setSlaXmlBlob(StringBlob slaXml) |
void |
setStartTime(Date startTime) |
void |
setStartTimestamp(Timestamp startTimestamp)
Set start timestamp
|
void |
setStatus(Job.Status val) |
void |
setStatusStr(String status)
Get status
|
void |
setSuspendedTime(Date suspendedTime)
Set suspended time
|
void |
setSuspendedTimestamp(Timestamp suspendedTimestamp)
Set suspended timestamp
|
void |
setTimeout(int timeOut) |
void |
setTimeUnit(CoordinatorJob.Timeunit timeUnit) |
void |
setTimeUnitStr(String timeunit)
Set time unit
|
void |
setTimeZone(String timeZone) |
void |
setUser(String user) |
static org.json.simple.JSONArray |
toJSONArray(List<CoordinatorJobBean> applications,
String timeZoneId)
Convert a coordinator application 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 CoordinatorJobBean()
public Timestamp getStartTimestamp()
public void setStartTimestamp(Timestamp startTimestamp)
startTimestamp - start timestamppublic Timestamp getEndTimestamp()
public void setEndTimestamp(Timestamp endTimestamp)
endTimestamp - end timestamppublic Timestamp getNextMaterializedTimestamp()
public void setNextMaterializedTimestamp(Timestamp nextMaterializedTimestamp)
nextMaterializedTimestamp - next materialized timestamppublic Timestamp getLastModifiedTimestamp()
public void setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
lastModifiedTimestamp - last modified timestamppublic Timestamp getSuspendedTimestamp()
public void setSuspendedTimestamp(Timestamp suspendedTimestamp)
suspendedTimestamp - suspended timestamppublic void setJobXmlBlob(StringBlob jobXmlBlob)
public StringBlob getJobXmlBlob()
public String getOrigJobXml()
public void setOrigJobXml(String origJobXml)
origJobXml - public void setOrigJobXmlBlob(StringBlob origJobXml)
public StringBlob getOrigJobXmlBlob()
public void setSlaXmlBlob(StringBlob slaXml)
public StringBlob getSlaXmlBlob()
public void setLastActionTimestamp(Timestamp lastActionTimestamp)
lastActionTimestamp - last action timestamppublic boolean isPending()
public void setDoneMaterialization()
public void setDoneMaterialization(int i)
public void resetDoneMaterialization()
public boolean isDoneMaterialization()
public String getAppNamespace()
public void setAppNamespace(String appNamespace)
appNamespace - the app namespce to setpublic 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.WritabledataInput - data input.IOException - thrown if the workflow bean could not be deserialized.public boolean isTerminalStatus()
public Job.Status getStatus()
getStatus in interface CoordinatorJobgetStatus in interface Jobpublic String getStatusStr()
public void setStatusStr(String status)
public void setStatus(Job.Status val)
public String getTimeUnitStr()
public void setTimeUnitStr(String timeunit)
public void setTimeUnit(CoordinatorJob.Timeunit timeUnit)
public CoordinatorJob.Timeunit getTimeUnit()
getTimeUnit in interface CoordinatorJobpublic void setExecutionOrder(CoordinatorJob.Execution order)
order - public CoordinatorJob.Execution getExecutionOrder()
getExecutionOrder in interface CoordinatorJobpublic void setExecution(String order)
public String getExecution()
public void setLastActionTime(Date lastAction)
public Date getLastActionTime()
getLastActionTime in interface CoordinatorJobpublic Timestamp getLastActionTimestamp()
public void setNextMaterializedTime(Date nextMaterializedTime)
public Date getNextMaterializedTime()
getNextMaterializedTime in interface CoordinatorJobpublic void setLastModifiedTime(Date lastModifiedTime)
lastModifiedTime - last modified timepublic Date getLastModifiedTime()
public void setSuspendedTime(Date suspendedTime)
suspendedTime - suspended timepublic Date getSuspendedTime()
public void setStartTime(Date startTime)
public Date getStartTime()
getStartTime in interface CoordinatorJobgetStartTime in interface Jobpublic void setEndTime(Date endTime)
public void setPauseTime(Date pauseTime)
public Date getEndTime()
getEndTime in interface CoordinatorJobgetEndTime in interface Jobpublic Date getPauseTime()
getPauseTime in interface Jobpublic Timestamp getPauseTimestamp()
public void setCreatedTime(Date createTime)
createTime - created timepublic Date getCreatedTime()
public Timestamp getCreatedTimestamp()
public String getAppPath()
getAppPath in interface CoordinatorJobgetAppPath in interface Jobpublic void setAppPath(String appPath)
public String getAppName()
getAppName in interface CoordinatorJobgetAppName in interface Jobpublic void setAppName(String appName)
public String getId()
getId in interface CoordinatorJobgetId in interface Jobpublic void setExternalId(String externalId)
public String getExternalId()
getExternalId in interface Jobpublic String getConf()
getConf in interface CoordinatorJobgetConf in interface Jobpublic void setConfBlob(StringBlob conf)
public StringBlob getConfBlob()
public void setFrequency(String frequency)
public String getFrequency()
getFrequency in interface CoordinatorJobpublic void setTimeZone(String timeZone)
public String getTimeZone()
getTimeZone in interface CoordinatorJobpublic void setConcurrency(int concurrency)
public int getConcurrency()
getConcurrency in interface CoordinatorJobpublic int getMatThrottling()
public void setMatThrottling(int matThrottling)
public void setTimeout(int timeOut)
public int getTimeout()
getTimeout in interface CoordinatorJobpublic String getUser()
getUser in interface CoordinatorJobgetUser in interface Jobpublic String getGroup()
getGroup in interface CoordinatorJobgetGroup in interface Jobpublic String getAcl()
getAcl in interface CoordinatorJobgetAcl in interface Jobpublic String getBundleId()
getBundleId in interface CoordinatorJobpublic void setBundleId(String bundleId)
public String getConsoleUrl()
getConsoleUrl in interface CoordinatorJobgetConsoleUrl in interface Jobpublic void setConsoleUrl(String consoleUrl)
consoleUrl - the coordinate application console URL.public void setActions(List<CoordinatorActionBean> nodes)
public List<CoordinatorAction> getActions()
getActions in interface CoordinatorJobpublic static org.json.simple.JSONArray toJSONArray(List<CoordinatorJobBean> applications, String timeZoneId)
applications - list.timeZoneId - time zone to use for dates in the JSON array.public int getLastActionNumber()
public void setLastActionNumber(int lastActionNumber)
public void setPending()
setPending in interface Jobpublic void resetPending()
resetPending in interface Jobpublic int getNumActions()
public void setNumActions(int numAction)
public org.json.simple.JSONObject toJSONObject()
JsonBeantoJSONObject in interface JsonBeanpublic org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBeantoJSONObject in interface JsonBeantimeZoneId - the time zone to useCopyright © 2015 Apache Software Foundation. All Rights Reserved.