org.apache.oozie
Class CoordinatorJobBean
java.lang.Object
org.apache.oozie.client.rest.JsonCoordinatorJob
org.apache.oozie.CoordinatorJobBean
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, CoordinatorJob, JsonBean
public class CoordinatorJobBean
- extends JsonCoordinatorJob
- implements org.apache.hadoop.io.Writable
Methods inherited from class org.apache.oozie.client.rest.JsonCoordinatorJob |
fromJSONArray, getActions, getAppName, getAppPath, getBundleId, getConcurrency, getConf, getConsoleUrl, getExternalId, getFrequency, getGroup, getId, getLastActionNumber, getTimeout, getTimeZone, getUser, setActions, setAppName, setAppPath, setBundleId, setConcurrency, setConf, setConsoleUrl, setExecutionOrder, setExternalId, setFrequency, setGroup, setId, setLastActionNumber, setTimeout, setTimeZone, setUser, toJSONArray, toJSONObject, toString |
CoordinatorJobBean
public CoordinatorJobBean()
getStartTimestamp
public Timestamp getStartTimestamp()
setStartTimestamp
public void setStartTimestamp(Timestamp startTimestamp)
getEndTimestamp
public Timestamp getEndTimestamp()
setEndTimestamp
public void setEndTimestamp(Timestamp endTimestamp)
getNextMaterializedTimestamp
public Timestamp getNextMaterializedTimestamp()
setNextMaterializedTimestamp
public void setNextMaterializedTimestamp(Timestamp nextMaterializedTimestamp)
getLastModifiedTimestamp
public Timestamp getLastModifiedTimestamp()
setLastModifiedTimestamp
public void setLastModifiedTimestamp(Timestamp lastModifiedTimestamp)
getSuspendedTimestamp
public Timestamp getSuspendedTimestamp()
setSuspendedTimestamp
public void setSuspendedTimestamp(Timestamp suspendedTimestamp)
getJobXml
public String getJobXml()
setJobXml
public void setJobXml(String jobXml)
getOrigJobXml
public String getOrigJobXml()
setOrigJobXml
public void setOrigJobXml(String origJobXml)
getSlaXml
public String getSlaXml()
setSlaXml
public void setSlaXml(String slaXml)
setTimeUnit
public void setTimeUnit(CoordinatorJob.Timeunit timeUnit)
- Overrides:
setTimeUnit
in class JsonCoordinatorJob
setExecution
public void setExecution(String execution)
setLastActionTimestamp
public void setLastActionTimestamp(Timestamp lastActionTimestamp)
setAuthToken
public void setAuthToken(String authToken)
write
public void write(DataOutput dataOutput)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput dataInput)
throws IOException
- Deserialize a coordinator bean from a data input.
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Parameters:
dataInput
- data input.
- Throws:
IOException
- thrown if the workflow bean could not be deserialized.
getStatus
public CoordinatorJob.Status getStatus()
- Description copied from interface:
CoordinatorJob
- Return the application status.
- Specified by:
getStatus
in interface CoordinatorJob
- Overrides:
getStatus
in class JsonCoordinatorJob
- Returns:
- the application status.
getStatusStr
public String getStatusStr()
setStatus
public void setStatus(CoordinatorJob.Status val)
- Overrides:
setStatus
in class JsonCoordinatorJob
getTimeUnitStr
public String getTimeUnitStr()
getTimeUnit
public CoordinatorJob.Timeunit getTimeUnit()
- Description copied from interface:
CoordinatorJob
- Return the timeUnit for the coord job, it could be, Timeunit enum, e.g. MINUTE, HOUR, DAY, WEEK or MONTH
- Specified by:
getTimeUnit
in interface CoordinatorJob
- Overrides:
getTimeUnit
in class JsonCoordinatorJob
- Returns:
- the time unit for the coord job
setExecution
public void setExecution(CoordinatorJob.Execution order)
getExecutionOrder
public CoordinatorJob.Execution getExecutionOrder()
- Description copied from interface:
CoordinatorJob
- Return the execution order policy for the coord job
- Specified by:
getExecutionOrder
in interface CoordinatorJob
- Overrides:
getExecutionOrder
in class JsonCoordinatorJob
- Returns:
- the execution order policy for the coord job
getExecution
public String getExecution()
setLastActionTime
public void setLastActionTime(Date lastAction)
- Overrides:
setLastActionTime
in class JsonCoordinatorJob
getLastActionTime
public Date getLastActionTime()
- Description copied from interface:
CoordinatorJob
- Return the date for the last action of the coord job
- Specified by:
getLastActionTime
in interface CoordinatorJob
- Overrides:
getLastActionTime
in class JsonCoordinatorJob
- Returns:
- the date for the last action of the coord job
getLastActionTimestamp
public Timestamp getLastActionTimestamp()
setNextMaterializedTime
public void setNextMaterializedTime(Date nextMaterializedTime)
- Overrides:
setNextMaterializedTime
in class JsonCoordinatorJob
getNextMaterializedTime
public Date getNextMaterializedTime()
- Description copied from interface:
CoordinatorJob
- Return the application next materialized time.
- Specified by:
getNextMaterializedTime
in interface CoordinatorJob
- Overrides:
getNextMaterializedTime
in class JsonCoordinatorJob
- Returns:
- the application next materialized time.
setLastModifiedTime
public void setLastModifiedTime(Date lastModifiedTime)
getLastModifiedTime
public Date getLastModifiedTime()
setSuspendedTime
public void setSuspendedTime(Date suspendedTime)
getSuspendedTime
public Date getSuspendedTime()
setStartTime
public void setStartTime(Date startTime)
- Overrides:
setStartTime
in class JsonCoordinatorJob
getStartTime
public Date getStartTime()
- Description copied from interface:
CoordinatorJob
- Return the application start time.
- Specified by:
getStartTime
in interface CoordinatorJob
- Overrides:
getStartTime
in class JsonCoordinatorJob
- Returns:
- the application start time.
setEndTime
public void setEndTime(Date endTime)
- Overrides:
setEndTime
in class JsonCoordinatorJob
setPauseTime
public void setPauseTime(Date pauseTime)
- Overrides:
setPauseTime
in class JsonCoordinatorJob
getEndTime
public Date getEndTime()
- Description copied from interface:
CoordinatorJob
- Return the application end time.
- Specified by:
getEndTime
in interface CoordinatorJob
- Overrides:
getEndTime
in class JsonCoordinatorJob
- Returns:
- the application end time.
getPauseTime
public Date getPauseTime()
- Overrides:
getPauseTime
in class JsonCoordinatorJob
setCreatedTime
public void setCreatedTime(Date createTime)
getCreatedTime
public Date getCreatedTime()
getCreatedTimestamp
public Timestamp getCreatedTimestamp()
getAuthToken
public String getAuthToken()
Copyright © 2011 Yahoo. All Rights Reserved.