org.apache.oozie.client.rest
Class JsonCoordinatorAction

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonCoordinatorAction
All Implemented Interfaces:
org.apache.oozie.client.CoordinatorAction, JsonBean
Direct Known Subclasses:
CoordinatorActionBean

@Entity
public class JsonCoordinatorAction
extends Object
implements org.apache.oozie.client.CoordinatorAction, JsonBean


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.CoordinatorAction
org.apache.oozie.client.CoordinatorAction.Status
 
Constructor Summary
JsonCoordinatorAction()
           
 
Method Summary
 boolean equals(Object obj)
           
 int getActionNumber()
           
 String getActionXml()
           
 String getConsoleUrl()
           
 String getCreatedConf()
           
 Date getCreatedTime()
           
 String getErrorCode()
           
 String getErrorMessage()
           
 String getExternalId()
           
 String getExternalStatus()
           
 String getId()
           
 String getJobId()
           
 Date getLastModifiedTime()
           
 String getMissingDependencies()
           
 Date getNominalTime()
           
 String getRunConf()
           
 org.apache.oozie.client.CoordinatorAction.Status getStatus()
           
 int getTimeOut()
           
 String getTrackerUri()
           
 String getType()
           
 int hashCode()
           
 void setActionNumber(int actionNumber)
           
 void setActionXml(String actionXml)
           
 void setConsoleUrl(String consoleUrl)
           
 void setCreatedConf(String createdConf)
           
 void setCreatedTime(Date createdTime)
           
 void setErrorCode(String errorCode)
           
 void setErrorInfo(String errorCode, String errorMessage)
           
 void setErrorMessage(String errorMessage)
           
 void setExternalId(String extId)
           
 void setExternalStatus(String externalStatus)
           
 void setId(String id)
           
 void setJobId(String id)
           
 void setLastModifiedTime(Date lastModifiedTime)
           
 void setMissingDependencies(String missingDependencies)
           
 void setNominalTime(Date nominalTime)
           
 void setRunConf(String runConf)
           
 void setStatus(org.apache.oozie.client.CoordinatorAction.Status status)
           
 void setTimeOut(int timeOut)
           
 void setTrackerUri(String trackerUri)
           
 void setType(String type)
           
static org.json.simple.JSONArray toJSONArray(List<? extends JsonCoordinatorAction> actions, String timeZoneId)
          Convert a nodes 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonCoordinatorAction

public JsonCoordinatorAction()
Method Detail

toJSONObject

public org.json.simple.JSONObject toJSONObject()
Description copied from interface: JsonBean
Return the JSONObject for the bean with GMT time zone.

Specified by:
toJSONObject in interface JsonBean
Returns:
the JSONObject for the bean with GMT time zone.

toJSONObject

public org.json.simple.JSONObject toJSONObject(String timeZoneId)
Description copied from interface: JsonBean
Return the JSONObject for the bean with the given time zone.

Specified by:
toJSONObject in interface JsonBean
Parameters:
timeZoneId - the time zone to use
Returns:
the JSONObject for the bean with the given time zone.

getId

public String getId()
Specified by:
getId in interface org.apache.oozie.client.CoordinatorAction

setId

public void setId(String id)

getJobId

public String getJobId()
Specified by:
getJobId in interface org.apache.oozie.client.CoordinatorAction

setJobId

public void setJobId(String id)

getType

public String getType()

setType

public void setType(String type)

getExternalId

public String getExternalId()
Specified by:
getExternalId in interface org.apache.oozie.client.CoordinatorAction

setExternalId

public void setExternalId(String extId)

setActionNumber

public void setActionNumber(int actionNumber)

getActionNumber

public int getActionNumber()
Specified by:
getActionNumber in interface org.apache.oozie.client.CoordinatorAction

getCreatedConf

public String getCreatedConf()
Specified by:
getCreatedConf in interface org.apache.oozie.client.CoordinatorAction

setCreatedConf

public void setCreatedConf(String createdConf)

setCreatedTime

public void setCreatedTime(Date createdTime)

getCreatedTime

public Date getCreatedTime()
Specified by:
getCreatedTime in interface org.apache.oozie.client.CoordinatorAction

getStatus

public org.apache.oozie.client.CoordinatorAction.Status getStatus()
Specified by:
getStatus in interface org.apache.oozie.client.CoordinatorAction

setStatus

public void setStatus(org.apache.oozie.client.CoordinatorAction.Status status)

setLastModifiedTime

public void setLastModifiedTime(Date lastModifiedTime)

getLastModifiedTime

public Date getLastModifiedTime()
Specified by:
getLastModifiedTime in interface org.apache.oozie.client.CoordinatorAction

setRunConf

public void setRunConf(String runConf)

getRunConf

public String getRunConf()
Specified by:
getRunConf in interface org.apache.oozie.client.CoordinatorAction

setMissingDependencies

public void setMissingDependencies(String missingDependencies)

getMissingDependencies

public String getMissingDependencies()
Specified by:
getMissingDependencies in interface org.apache.oozie.client.CoordinatorAction

getExternalStatus

public String getExternalStatus()
Specified by:
getExternalStatus in interface org.apache.oozie.client.CoordinatorAction

setExternalStatus

public void setExternalStatus(String externalStatus)

getTrackerUri

public String getTrackerUri()
Specified by:
getTrackerUri in interface org.apache.oozie.client.CoordinatorAction

setTrackerUri

public void setTrackerUri(String trackerUri)

getConsoleUrl

public String getConsoleUrl()
Specified by:
getConsoleUrl in interface org.apache.oozie.client.CoordinatorAction

setConsoleUrl

public void setConsoleUrl(String consoleUrl)

getErrorCode

public String getErrorCode()
Specified by:
getErrorCode in interface org.apache.oozie.client.CoordinatorAction

getErrorMessage

public String getErrorMessage()
Specified by:
getErrorMessage in interface org.apache.oozie.client.CoordinatorAction

setErrorInfo

public void setErrorInfo(String errorCode,
                         String errorMessage)

getActionXml

public String getActionXml()

setActionXml

public void setActionXml(String actionXml)

toString

public String toString()
Overrides:
toString in class Object

getNominalTime

public Date getNominalTime()
Specified by:
getNominalTime in interface org.apache.oozie.client.CoordinatorAction

setNominalTime

public void setNominalTime(Date nominalTime)

getTimeOut

public int getTimeOut()

setTimeOut

public void setTimeOut(int timeOut)

setErrorCode

public void setErrorCode(String errorCode)
Specified by:
setErrorCode in interface org.apache.oozie.client.CoordinatorAction

setErrorMessage

public void setErrorMessage(String errorMessage)
Specified by:
setErrorMessage in interface org.apache.oozie.client.CoordinatorAction

toJSONArray

public static org.json.simple.JSONArray toJSONArray(List<? extends JsonCoordinatorAction> actions,
                                                    String timeZoneId)
Convert a nodes list into a JSONArray.

Parameters:
actions - nodes list.
timeZoneId - time zone to use for dates in the JSON array.
Returns:
the corresponding JSON array.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.