|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.client.rest.JsonCoordinatorJob
public class JsonCoordinatorJob
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.oozie.client.CoordinatorJob |
|---|
CoordinatorJob.Execution, CoordinatorJob.Status, CoordinatorJob.Timeunit |
| Constructor Summary | |
|---|---|
JsonCoordinatorJob()
|
|
JsonCoordinatorJob(org.json.simple.JSONObject json)
|
|
| Method Summary | |
|---|---|
static java.util.List<CoordinatorJob> |
fromJSONArray(org.json.simple.JSONArray applications)
Convert a JSONArray into a application list. |
java.util.List<CoordinatorAction> |
getActions()
Return list of coordinator actions. |
java.lang.String |
getAppName()
Return the name of the Oozie application (from the application definition). |
java.lang.String |
getAppPath()
Return the path to the Oozie application. |
java.lang.String |
getBundleId()
Return the BundleId. |
int |
getConcurrency()
Return the concurrency for the coord job |
java.lang.String |
getConf()
Return the application configuration. |
java.lang.String |
getConsoleUrl()
Return the coordinate application console URL. |
java.util.Date |
getEndTime()
Return the application end time. |
CoordinatorJob.Execution |
getExecutionOrder()
Return the execution order policy for the coord job |
java.lang.String |
getExternalId()
|
int |
getFrequency()
Return the frequency for the coord job in unit of minute |
java.lang.String |
getGroup()
Return the application group. |
java.lang.String |
getId()
Return the application ID. |
int |
getLastActionNumber()
|
java.util.Date |
getLastActionTime()
Return the date for the last action of the coord job |
java.util.Date |
getNextMaterializedTime()
Return the application next materialized time. |
java.util.Date |
getPauseTime()
|
java.util.Date |
getStartTime()
Return the application start time. |
CoordinatorJob.Status |
getStatus()
Return the application status. |
int |
getTimeout()
Return the time out value for the coord job |
CoordinatorJob.Timeunit |
getTimeUnit()
Return the timeUnit for the coord job, it could be, Timeunit enum, e.g. |
java.lang.String |
getTimeZone()
Return the time zone information for the coord job |
java.lang.String |
getUser()
Return the application user owner. |
void |
setActions(java.util.List<? extends JsonCoordinatorAction> nodes)
|
void |
setAppName(java.lang.String appName)
|
void |
setAppPath(java.lang.String appPath)
|
void |
setBundleId(java.lang.String bundleId)
|
void |
setConcurrency(int concurrency)
|
void |
setConf(java.lang.String conf)
|
void |
setConsoleUrl(java.lang.String consoleUrl)
Set the coordinate application console URL. |
void |
setEndTime(java.util.Date endTime)
|
void |
setExecutionOrder(CoordinatorJob.Execution order)
|
void |
setExternalId(java.lang.String externalId)
|
void |
setFrequency(int frequency)
|
void |
setGroup(java.lang.String group)
|
void |
setId(java.lang.String id)
|
void |
setLastActionNumber(int lastActionNumber)
|
void |
setLastActionTime(java.util.Date lastAction)
|
void |
setNextMaterializedTime(java.util.Date nextMaterializedTime)
|
void |
setPauseTime(java.util.Date pauseTime)
|
void |
setStartTime(java.util.Date startTime)
|
void |
setStatus(CoordinatorJob.Status status)
|
void |
setTimeout(int timeOut)
|
void |
setTimeUnit(CoordinatorJob.Timeunit timeUnit)
|
void |
setTimeZone(java.lang.String timeZone)
|
void |
setUser(java.lang.String user)
|
static org.json.simple.JSONArray |
toJSONArray(java.util.List<? extends JsonCoordinatorJob> applications)
Convert a coordinator application list into a JSONArray. |
org.json.simple.JSONObject |
toJSONObject()
Return the JSONObject for the bean. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JsonCoordinatorJob()
public JsonCoordinatorJob(org.json.simple.JSONObject json)
| Method Detail |
|---|
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject in interface JsonBeanpublic java.lang.String getAppPath()
CoordinatorJob
getAppPath in interface CoordinatorJobpublic void setAppPath(java.lang.String appPath)
public java.lang.String getAppName()
CoordinatorJob
getAppName in interface CoordinatorJobpublic void setAppName(java.lang.String appName)
public java.lang.String getId()
CoordinatorJob
getId in interface CoordinatorJobpublic void setId(java.lang.String id)
public void setExternalId(java.lang.String externalId)
public java.lang.String getExternalId()
public java.lang.String getConf()
CoordinatorJob
getConf in interface CoordinatorJobpublic void setConf(java.lang.String conf)
public CoordinatorJob.Status getStatus()
CoordinatorJob
getStatus in interface CoordinatorJobpublic void setStatus(CoordinatorJob.Status status)
public void setFrequency(int frequency)
public int getFrequency()
CoordinatorJob
getFrequency in interface CoordinatorJobpublic void setTimeUnit(CoordinatorJob.Timeunit timeUnit)
public CoordinatorJob.Timeunit getTimeUnit()
CoordinatorJob
getTimeUnit in interface CoordinatorJobpublic void setTimeZone(java.lang.String timeZone)
public java.lang.String getTimeZone()
CoordinatorJob
getTimeZone in interface CoordinatorJobpublic void setConcurrency(int concurrency)
public int getConcurrency()
CoordinatorJob
getConcurrency in interface CoordinatorJobpublic void setExecutionOrder(CoordinatorJob.Execution order)
public CoordinatorJob.Execution getExecutionOrder()
CoordinatorJob
getExecutionOrder in interface CoordinatorJobpublic void setTimeout(int timeOut)
public int getTimeout()
CoordinatorJob
getTimeout in interface CoordinatorJobpublic void setLastActionTime(java.util.Date lastAction)
public java.util.Date getLastActionTime()
CoordinatorJob
getLastActionTime in interface CoordinatorJobpublic java.util.Date getNextMaterializedTime()
CoordinatorJob
getNextMaterializedTime in interface CoordinatorJobpublic void setNextMaterializedTime(java.util.Date nextMaterializedTime)
public java.util.Date getStartTime()
CoordinatorJob
getStartTime in interface CoordinatorJobpublic void setStartTime(java.util.Date startTime)
public java.util.Date getEndTime()
CoordinatorJob
getEndTime in interface CoordinatorJobpublic void setEndTime(java.util.Date endTime)
public java.util.Date getPauseTime()
public void setPauseTime(java.util.Date pauseTime)
public java.lang.String getUser()
CoordinatorJob
getUser in interface CoordinatorJobpublic void setUser(java.lang.String user)
public java.lang.String getGroup()
CoordinatorJob
getGroup in interface CoordinatorJobpublic void setGroup(java.lang.String group)
public java.lang.String getBundleId()
CoordinatorJob
getBundleId in interface CoordinatorJobpublic void setBundleId(java.lang.String bundleId)
public java.lang.String getConsoleUrl()
getConsoleUrl in interface CoordinatorJobpublic void setConsoleUrl(java.lang.String consoleUrl)
consoleUrl - the coordinate application console URL.public java.lang.String toString()
toString in class java.lang.Objectpublic void setActions(java.util.List<? extends JsonCoordinatorAction> nodes)
public java.util.List<CoordinatorAction> getActions()
CoordinatorJob
getActions in interface CoordinatorJobpublic static org.json.simple.JSONArray toJSONArray(java.util.List<? extends JsonCoordinatorJob> applications)
application - list.
public static java.util.List<CoordinatorJob> fromJSONArray(org.json.simple.JSONArray applications)
array - JSON array.
public int getLastActionNumber()
public void setLastActionNumber(int lastActionNumber)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||