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

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 getData()
           
 Date getEndTime()
           
 String getErrorCode()
           
 String getErrorMessage()
           
 String getExternalId()
           
 String getExternalStatus()
           
 String getId()
           
 String getName()
           
 int getRetries()
           
 Date getStartTime()
           
 org.apache.oozie.client.WorkflowAction.Status getStatus()
           
 String getTrackerUri()
           
 String getTransition()
           
 String getType()
           
 void setConf(String conf)
           
 void setConsoleUrl(String consoleUrl)
           
 void setData(String data)
           
 void setEndTime(Date endTime)
           
 void setErrorInfo(String errorCode, String errorMessage)
           
 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 setStatus(org.apache.oozie.client.WorkflowAction.Status status)
           
 void setTrackerUri(String trackerUri)
           
 void setTransition(String transition)
           
 void setType(String type)
           
static org.json.simple.JSONArray toJSONArray(List<? extends JsonWorkflowAction> nodes)
          Convert a nodes list into a JSONArray.
 org.json.simple.JSONObject toJSONObject()
          Return the JSONObject for the bean.
 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.

Specified by:
toJSONObject in interface JsonBean
Returns:
the JSONObject for the bean.

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)

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)

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)

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)
Convert a nodes list into a JSONArray.

Parameters:
nodes - nodes list.
Returns:
the corresponding JSON array.


Copyright © 2012 Yahoo. All Rights Reserved.