org.apache.oozie.client.rest
Class JsonWorkflowAction

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonWorkflowAction
All Implemented Interfaces:
JsonBean, org.apache.oozie.client.WorkflowAction
Direct Known Subclasses:
WorkflowActionBean

@Entity
public class JsonWorkflowAction
extends Object
implements org.apache.oozie.client.WorkflowAction, JsonBean

Json Bean that represents an Oozie workflow node.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.WorkflowAction
org.apache.oozie.client.WorkflowAction.Status
 
Constructor Summary
JsonWorkflowAction()
           
 
Method Summary
 String getConf()
           
 String getConsoleUrl()
           
 String getCred()
           
 String getData()
           
 Date getEndTime()
           
 String getErrorCode()
           
 String getErrorMessage()
           
 String getExternalChildIDs()
           
 String getExternalId()
           
 String getExternalStatus()
           
 String getId()
           
 String getName()
           
 int getRetries()
           
 Date getStartTime()
           
 String getStats()
           
 org.apache.oozie.client.WorkflowAction.Status getStatus()
           
 String getTrackerUri()
           
 String getTransition()
           
 String getType()
           
 int getUserRetryCount()
           
 int getUserRetryInterval()
           
 int getUserRetryMax()
           
 void incrmentUserRetryCount()
           
 void setConf(String conf)
           
 void setConsoleUrl(String consoleUrl)
           
 void setCred(String cred)
           
 void setData(String data)
           
 void setEndTime(Date endTime)
           
 void setErrorInfo(String errorCode, String errorMessage)
           
 void setExternalChildIDs(String externalChildIDs)
           
 void setExternalId(String externalId)
           
 void setExternalStatus(String externalStatus)
           
 void setId(String id)
           
 void setName(String name)
           
 void setRetries(int retries)
           
 void setStartTime(Date startTime)
           
 void setStats(String stats)
           
 void setStatus(org.apache.oozie.client.WorkflowAction.Status status)
           
 void setTrackerUri(String trackerUri)
           
 void setTransition(String transition)
           
 void setType(String type)
           
 void setUserRetryCount(int retryCount)
           
 void setUserRetryInterval(int retryInterval)
           
 void setUserRetryMax(int retryMax)
           
static org.json.simple.JSONArray toJSONArray(List<? extends JsonWorkflowAction> nodes, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonWorkflowAction

public JsonWorkflowAction()
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.WorkflowAction

setId

public void setId(String id)

getName

public String getName()
Specified by:
getName in interface org.apache.oozie.client.WorkflowAction

setName

public void setName(String name)

getCred

public String getCred()
Specified by:
getCred in interface org.apache.oozie.client.WorkflowAction

setCred

public void setCred(String cred)

getType

public String getType()
Specified by:
getType in interface org.apache.oozie.client.WorkflowAction

setType

public void setType(String type)

getConf

public String getConf()
Specified by:
getConf in interface org.apache.oozie.client.WorkflowAction

setConf

public void setConf(String conf)

getStatus

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

setStatus

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

getRetries

public int getRetries()
Specified by:
getRetries in interface org.apache.oozie.client.WorkflowAction

setRetries

public void setRetries(int retries)

getUserRetryCount

public int getUserRetryCount()
Specified by:
getUserRetryCount in interface org.apache.oozie.client.WorkflowAction

setUserRetryCount

public void setUserRetryCount(int retryCount)

incrmentUserRetryCount

public void incrmentUserRetryCount()

getUserRetryMax

public int getUserRetryMax()
Specified by:
getUserRetryMax in interface org.apache.oozie.client.WorkflowAction

setUserRetryMax

public void setUserRetryMax(int retryMax)

getUserRetryInterval

public int getUserRetryInterval()
Specified by:
getUserRetryInterval in interface org.apache.oozie.client.WorkflowAction

setUserRetryInterval

public void setUserRetryInterval(int retryInterval)

getStartTime

public Date getStartTime()
Specified by:
getStartTime in interface org.apache.oozie.client.WorkflowAction

setStartTime

public void setStartTime(Date startTime)

getEndTime

public Date getEndTime()
Specified by:
getEndTime in interface org.apache.oozie.client.WorkflowAction

setEndTime

public void setEndTime(Date endTime)

getTransition

public String getTransition()
Specified by:
getTransition in interface org.apache.oozie.client.WorkflowAction

setTransition

public void setTransition(String transition)

getData

public String getData()
Specified by:
getData in interface org.apache.oozie.client.WorkflowAction

setData

public void setData(String data)

getStats

public String getStats()
Specified by:
getStats in interface org.apache.oozie.client.WorkflowAction

setStats

public void setStats(String stats)

getExternalChildIDs

public String getExternalChildIDs()
Specified by:
getExternalChildIDs in interface org.apache.oozie.client.WorkflowAction

setExternalChildIDs

public void setExternalChildIDs(String externalChildIDs)

getExternalId

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

setExternalId

public void setExternalId(String externalId)

getExternalStatus

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

setExternalStatus

public void setExternalStatus(String externalStatus)

getTrackerUri

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

setTrackerUri

public void setTrackerUri(String trackerUri)

getConsoleUrl

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

setConsoleUrl

public void setConsoleUrl(String consoleUrl)

getErrorCode

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

getErrorMessage

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

setErrorInfo

public void setErrorInfo(String errorCode,
                         String errorMessage)

toString

public String toString()
Overrides:
toString in class Object

toJSONArray

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

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


Copyright © 2013 Apache Software Foundation. All Rights Reserved.