org.apache.oozie
Class CoordinatorActionBean

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonCoordinatorAction
      extended by org.apache.oozie.CoordinatorActionBean
All Implemented Interfaces:
org.apache.hadoop.io.Writable, CoordinatorAction, JsonBean

public class CoordinatorActionBean
extends JsonCoordinatorAction
implements org.apache.hadoop.io.Writable


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.CoordinatorAction
CoordinatorAction.Status
 
Constructor Summary
CoordinatorActionBean()
           
 
Method Summary
 Date getCreatedTime()
          Return the creation time for the application instance
 Timestamp getCreatedTimestamp()
           
 String getExternalId()
           
 String getJobId()
          Return the coordinator job ID.
 Date getLastModifiedTime()
          Return the last modified time
 Timestamp getLastModifiedTimestamp()
           
 Date getNominalTime()
          Return the nominal time for the application instance
 Timestamp getNominalTimestamp()
           
 Date getRerunTime()
           
 Timestamp getRerunTimestamp()
           
 String getSlaXml()
           
 CoordinatorAction.Status getStatus()
          Return the current status of the application instance.
 boolean isTerminalStatus()
           
 void readFields(DataInput dataInput)
          Deserialize a coordinator bean from a data input.
 void setCreatedTime(Date createdTime)
           
 void setExternalId(String externalId)
           
 void setJobId(String id)
           
 void setLastModifiedTime(Date lastModifiedTime)
           
 void setNominalTime(Date nominalTime)
           
 void setRerunTime(Date rerunTime)
           
 void setSlaXml(String slaXml)
           
 void setStatus(CoordinatorAction.Status status)
           
 void write(DataOutput dataOutput)
          Serialize the coordinator bean to a data output.
 
Methods inherited from class org.apache.oozie.client.rest.JsonCoordinatorAction
equals, fromJSONArray, 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinatorActionBean

public CoordinatorActionBean()
Method Detail

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()
Description copied from interface: CoordinatorAction
Return the coordinator job ID.

Specified by:
getJobId in interface CoordinatorAction
Overrides:
getJobId in class JsonCoordinatorAction
Returns:
the coordinator job ID.

setJobId

public void setJobId(String id)
Overrides:
setJobId in class JsonCoordinatorAction

getStatus

public CoordinatorAction.Status getStatus()
Description copied from interface: CoordinatorAction
Return the current status of the application instance.

Specified by:
getStatus in interface CoordinatorAction
Overrides:
getStatus in class JsonCoordinatorAction
Returns:
the current status of the application instance.

setStatus

public void setStatus(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()
Description copied from interface: CoordinatorAction
Return the creation time for the application instance

Specified by:
getCreatedTime in interface CoordinatorAction
Overrides:
getCreatedTime in class JsonCoordinatorAction
Returns:
the creation time for the application instance

getCreatedTimestamp

public Timestamp getCreatedTimestamp()

getRerunTime

public Date getRerunTime()

getRerunTimestamp

public Timestamp getRerunTimestamp()

getLastModifiedTime

public Date getLastModifiedTime()
Description copied from interface: CoordinatorAction
Return the last modified time

Specified by:
getLastModifiedTime in interface CoordinatorAction
Overrides:
getLastModifiedTime in class JsonCoordinatorAction
Returns:
the last modified time

getLastModifiedTimestamp

public Timestamp getLastModifiedTimestamp()

getNominalTime

public Date getNominalTime()
Description copied from interface: CoordinatorAction
Return the nominal time for the application instance

Specified by:
getNominalTime in interface CoordinatorAction
Overrides:
getNominalTime in class JsonCoordinatorAction
Returns:
the nominal time for the application instance

getNominalTimestamp

public Timestamp getNominalTimestamp()

getExternalId

public String getExternalId()
Specified by:
getExternalId in interface 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 © 2011 Yahoo. All Rights Reserved.