org.apache.oozie.client.rest
Class JsonCoordinatorAction
java.lang.Object
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 classes/interfaces inherited from interface org.apache.oozie.client.CoordinatorAction |
org.apache.oozie.client.CoordinatorAction.Status |
JsonCoordinatorAction
public JsonCoordinatorAction()
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.