org.apache.oozie
Class CoordinatorActionBean
java.lang.Object
org.apache.oozie.client.rest.JsonCoordinatorAction
org.apache.oozie.CoordinatorActionBean
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, org.apache.oozie.client.CoordinatorAction, JsonBean
public class CoordinatorActionBean
- extends JsonCoordinatorAction
- implements org.apache.hadoop.io.Writable
Nested classes/interfaces inherited from interface org.apache.oozie.client.CoordinatorAction |
org.apache.oozie.client.CoordinatorAction.Status |
Methods inherited from class org.apache.oozie.client.rest.JsonCoordinatorAction |
equals, getActionNumber, getActionXml, getConsoleUrl, getCreatedConf, getErrorCode, getErrorMessage, getExternalStatus, getId, getMissingDependencies, getRunConf, getTimeOut, getTrackerUri, getType, hashCode, setActionNumber, setActionXml, setConsoleUrl, setCreatedConf, setErrorCode, setErrorInfo, setErrorMessage, setExternalStatus, setId, setMissingDependencies, setRunConf, setTimeOut, setTrackerUri, setType, toJSONArray, toJSONObject, toString |
CoordinatorActionBean
public CoordinatorActionBean()
write
public void write(DataOutput dataOutput)
throws IOException
- Serialize the coordinator bean to a data output.
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Parameters:
dataOutput
- data output.
- Throws:
IOException
- thrown if the coordinator bean could not be serialized.
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.
getJobId
public String getJobId()
- Specified by:
getJobId
in interface org.apache.oozie.client.CoordinatorAction
- Overrides:
getJobId
in class JsonCoordinatorAction
setJobId
public void setJobId(String id)
- Overrides:
setJobId
in class JsonCoordinatorAction
getStatus
public org.apache.oozie.client.CoordinatorAction.Status getStatus()
- Specified by:
getStatus
in interface org.apache.oozie.client.CoordinatorAction
- Overrides:
getStatus
in class JsonCoordinatorAction
setStatus
public void setStatus(org.apache.oozie.client.CoordinatorAction.Status status)
- Overrides:
setStatus
in class JsonCoordinatorAction
setCreatedTime
public void setCreatedTime(Date createdTime)
- Overrides:
setCreatedTime
in class JsonCoordinatorAction
setRerunTime
public void setRerunTime(Date rerunTime)
setNominalTime
public void setNominalTime(Date nominalTime)
- Overrides:
setNominalTime
in class JsonCoordinatorAction
setLastModifiedTime
public void setLastModifiedTime(Date lastModifiedTime)
- Overrides:
setLastModifiedTime
in class JsonCoordinatorAction
getCreatedTime
public Date getCreatedTime()
- Specified by:
getCreatedTime
in interface org.apache.oozie.client.CoordinatorAction
- Overrides:
getCreatedTime
in class JsonCoordinatorAction
getCreatedTimestamp
public Timestamp getCreatedTimestamp()
getRerunTime
public Date getRerunTime()
getRerunTimestamp
public Timestamp getRerunTimestamp()
getLastModifiedTime
public Date getLastModifiedTime()
- Specified by:
getLastModifiedTime
in interface org.apache.oozie.client.CoordinatorAction
- Overrides:
getLastModifiedTime
in class JsonCoordinatorAction
getLastModifiedTimestamp
public Timestamp getLastModifiedTimestamp()
getNominalTime
public Date getNominalTime()
- Specified by:
getNominalTime
in interface org.apache.oozie.client.CoordinatorAction
- Overrides:
getNominalTime
in class JsonCoordinatorAction
getNominalTimestamp
public Timestamp getNominalTimestamp()
getExternalId
public String getExternalId()
- Specified by:
getExternalId
in interface org.apache.oozie.client.CoordinatorAction
- Overrides:
getExternalId
in class JsonCoordinatorAction
setExternalId
public void setExternalId(String externalId)
- Overrides:
setExternalId
in class JsonCoordinatorAction
getSlaXml
public String getSlaXml()
setSlaXml
public void setSlaXml(String slaXml)
isTerminalStatus
public boolean isTerminalStatus()
- Returns:
- true if in terminal status
Copyright © 2013 Yahoo. All Rights Reserved.