@Entity public class CoordinatorJobBean extends Object implements org.apache.hadoop.io.Writable, CoordinatorJob, JsonBean
CoordinatorJob.Execution, CoordinatorJob.Timeunit
Job.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)
Set execution order
|
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)
Set 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
- the job xmlpublic 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)
i
- value to setpublic 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.Writable
IOException
public void readFields(DataInput dataInput) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
dataInput
- data input.IOException
- thrown if the workflow bean could not be deserialized.public boolean isTerminalStatus()
public Job.Status getStatus()
getStatus
in interface CoordinatorJob
getStatus
in interface Job
public String getStatusStr()
public void setStatusStr(String status)
status
- the status to setpublic void setStatus(Job.Status val)
public String getTimeUnitStr()
public void setTimeUnitStr(String timeunit)
timeunit
- time unit to setpublic void setTimeUnit(CoordinatorJob.Timeunit timeUnit)
public CoordinatorJob.Timeunit getTimeUnit()
getTimeUnit
in interface CoordinatorJob
public void setExecutionOrder(CoordinatorJob.Execution order)
order
- execution order to setpublic CoordinatorJob.Execution getExecutionOrder()
getExecutionOrder
in interface CoordinatorJob
public void setExecution(String order)
order
- order to setpublic String getExecution()
public void setLastActionTime(Date lastAction)
public Date getLastActionTime()
getLastActionTime
in interface CoordinatorJob
public Timestamp getLastActionTimestamp()
public void setNextMaterializedTime(Date nextMaterializedTime)
public Date getNextMaterializedTime()
getNextMaterializedTime
in interface CoordinatorJob
public 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 CoordinatorJob
getStartTime
in interface Job
public void setEndTime(Date endTime)
public void setPauseTime(Date pauseTime)
public Date getEndTime()
getEndTime
in interface CoordinatorJob
getEndTime
in interface Job
public Date getPauseTime()
getPauseTime
in interface Job
public Timestamp getPauseTimestamp()
public void setCreatedTime(Date createTime)
createTime
- created timepublic Date getCreatedTime()
getCreatedTime
in interface CoordinatorJob
public Timestamp getCreatedTimestamp()
public String getAppPath()
getAppPath
in interface CoordinatorJob
getAppPath
in interface Job
public void setAppPath(String appPath)
public String getAppName()
getAppName
in interface CoordinatorJob
getAppName
in interface Job
public void setAppName(String appName)
public String getId()
getId
in interface CoordinatorJob
getId
in interface Job
public void setExternalId(String externalId)
public String getExternalId()
getExternalId
in interface Job
public String getConf()
getConf
in interface CoordinatorJob
getConf
in interface Job
public void setConfBlob(StringBlob conf)
public StringBlob getConfBlob()
public void setFrequency(String frequency)
public String getFrequency()
getFrequency
in interface CoordinatorJob
public void setTimeZone(String timeZone)
public String getTimeZone()
getTimeZone
in interface CoordinatorJob
public void setConcurrency(int concurrency)
public int getConcurrency()
getConcurrency
in interface CoordinatorJob
public int getMatThrottling()
public void setMatThrottling(int matThrottling)
public void setTimeout(int timeOut)
public int getTimeout()
getTimeout
in interface CoordinatorJob
public String getUser()
getUser
in interface CoordinatorJob
getUser
in interface Job
public String getGroup()
getGroup
in interface CoordinatorJob
getGroup
in interface Job
public String getAcl()
getAcl
in interface CoordinatorJob
getAcl
in interface Job
public String getBundleId()
getBundleId
in interface CoordinatorJob
public void setBundleId(String bundleId)
public String getConsoleUrl()
getConsoleUrl
in interface CoordinatorJob
getConsoleUrl
in interface Job
public void setConsoleUrl(String consoleUrl)
consoleUrl
- the coordinate application console URL.public void setActions(List<CoordinatorActionBean> nodes)
public List<CoordinatorAction> getActions()
getActions
in interface CoordinatorJob
public 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 Job
public void resetPending()
resetPending
in interface Job
public int getNumActions()
public void setNumActions(int numAction)
public 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 useCopyright © 2018 Apache Software Foundation. All rights reserved.