|
||||||||||
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 List<CoordinatorJob> |
fromJSONArray(org.json.simple.JSONArray applications)
Convert a JSONArray into a application list. |
List<CoordinatorAction> |
getActions()
Return list of coordinator actions. |
String |
getAppName()
Return the name of the Oozie application (from the application definition). |
String |
getAppPath()
Return the path to the Oozie application. |
String |
getBundleId()
Return the BundleId. |
int |
getConcurrency()
Return the concurrency for the coord job |
String |
getConf()
Return the application configuration. |
String |
getConsoleUrl()
Return the coordinate application console URL. |
Date |
getEndTime()
Return the application end time. |
CoordinatorJob.Execution |
getExecutionOrder()
Return the execution order policy for the coord job |
String |
getExternalId()
|
int |
getFrequency()
Return the frequency for the coord job in unit of minute |
String |
getGroup()
Return the application group. |
String |
getId()
Return the application ID. |
int |
getLastActionNumber()
|
Date |
getLastActionTime()
Return the date for the last action of the coord job |
Date |
getNextMaterializedTime()
Return the application next materialized time. |
Date |
getPauseTime()
|
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. |
String |
getTimeZone()
Return the time zone information for the coord job |
String |
getUser()
Return the application user owner. |
void |
setActions(List<? extends JsonCoordinatorAction> nodes)
|
void |
setAppName(String appName)
|
void |
setAppPath(String appPath)
|
void |
setBundleId(String bundleId)
|
void |
setConcurrency(int concurrency)
|
void |
setConf(String conf)
|
void |
setConsoleUrl(String consoleUrl)
Set the coordinate application console URL. |
void |
setEndTime(Date endTime)
|
void |
setExecutionOrder(CoordinatorJob.Execution order)
|
void |
setExternalId(String externalId)
|
void |
setFrequency(int frequency)
|
void |
setGroup(String group)
|
void |
setId(String id)
|
void |
setLastActionNumber(int lastActionNumber)
|
void |
setLastActionTime(Date lastAction)
|
void |
setNextMaterializedTime(Date nextMaterializedTime)
|
void |
setPauseTime(Date pauseTime)
|
void |
setStartTime(Date startTime)
|
void |
setStatus(CoordinatorJob.Status status)
|
void |
setTimeout(int timeOut)
|
void |
setTimeUnit(CoordinatorJob.Timeunit timeUnit)
|
void |
setTimeZone(String timeZone)
|
void |
setUser(String user)
|
static org.json.simple.JSONArray |
toJSONArray(List<? extends JsonCoordinatorJob> applications)
Convert a coordinator application 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 |
---|
public JsonCoordinatorJob()
public JsonCoordinatorJob(org.json.simple.JSONObject json)
Method Detail |
---|
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public String getAppPath()
CoordinatorJob
getAppPath
in interface CoordinatorJob
public void setAppPath(String appPath)
public String getAppName()
CoordinatorJob
getAppName
in interface CoordinatorJob
public void setAppName(String appName)
public String getId()
CoordinatorJob
getId
in interface CoordinatorJob
public void setId(String id)
public void setExternalId(String externalId)
public String getExternalId()
public String getConf()
CoordinatorJob
getConf
in interface CoordinatorJob
public void setConf(String conf)
public CoordinatorJob.Status getStatus()
CoordinatorJob
getStatus
in interface CoordinatorJob
public void setStatus(CoordinatorJob.Status status)
public void setFrequency(int frequency)
public int getFrequency()
CoordinatorJob
getFrequency
in interface CoordinatorJob
public void setTimeUnit(CoordinatorJob.Timeunit timeUnit)
public CoordinatorJob.Timeunit getTimeUnit()
CoordinatorJob
getTimeUnit
in interface CoordinatorJob
public void setTimeZone(String timeZone)
public String getTimeZone()
CoordinatorJob
getTimeZone
in interface CoordinatorJob
public void setConcurrency(int concurrency)
public int getConcurrency()
CoordinatorJob
getConcurrency
in interface CoordinatorJob
public void setExecutionOrder(CoordinatorJob.Execution order)
public CoordinatorJob.Execution getExecutionOrder()
CoordinatorJob
getExecutionOrder
in interface CoordinatorJob
public void setTimeout(int timeOut)
public int getTimeout()
CoordinatorJob
getTimeout
in interface CoordinatorJob
public void setLastActionTime(Date lastAction)
public Date getLastActionTime()
CoordinatorJob
getLastActionTime
in interface CoordinatorJob
public Date getNextMaterializedTime()
CoordinatorJob
getNextMaterializedTime
in interface CoordinatorJob
public void setNextMaterializedTime(Date nextMaterializedTime)
public Date getStartTime()
CoordinatorJob
getStartTime
in interface CoordinatorJob
public void setStartTime(Date startTime)
public Date getEndTime()
CoordinatorJob
getEndTime
in interface CoordinatorJob
public void setEndTime(Date endTime)
public Date getPauseTime()
public void setPauseTime(Date pauseTime)
public String getUser()
CoordinatorJob
getUser
in interface CoordinatorJob
public void setUser(String user)
public String getGroup()
CoordinatorJob
getGroup
in interface CoordinatorJob
public void setGroup(String group)
public String getBundleId()
CoordinatorJob
getBundleId
in interface CoordinatorJob
public void setBundleId(String bundleId)
public String getConsoleUrl()
getConsoleUrl
in interface CoordinatorJob
public void setConsoleUrl(String consoleUrl)
consoleUrl
- the coordinate application console URL.public String toString()
toString
in class Object
public void setActions(List<? extends JsonCoordinatorAction> nodes)
public List<CoordinatorAction> getActions()
CoordinatorJob
getActions
in interface CoordinatorJob
public static org.json.simple.JSONArray toJSONArray(List<? extends JsonCoordinatorJob> applications)
application
- list.
public static 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 |