|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.sla.SLARegistrationBean
@Entity public class SLARegistrationBean
Constructor Summary | |
---|---|
SLARegistrationBean()
|
|
SLARegistrationBean(org.json.simple.JSONObject obj)
|
Method Summary | |
---|---|
static List<SLARegistrationBean> |
fromJSONArray(org.json.simple.JSONArray array)
Convert a JSONArray into a SLARegistrationBean list. |
String |
getAlertContact()
|
String |
getAlertEvents()
|
String |
getAppName()
|
org.apache.oozie.AppType |
getAppType()
|
long |
getExpectedDuration()
|
Date |
getExpectedEnd()
|
Date |
getExpectedStart()
|
String |
getId()
|
String |
getJobData()
|
org.apache.oozie.client.event.Event.MessageType |
getMsgType()
|
Date |
getNominalTime()
|
String |
getNotificationMsg()
|
String |
getParentId()
|
String |
getSlaConfig()
|
Map<String,String> |
getSlaConfigMap()
|
String |
getUpstreamApps()
|
String |
getUser()
|
void |
setAlertContact(String alertContact)
|
void |
setAlertEvents(String alertEvents)
|
void |
setAppName(String appName)
|
void |
setAppType(org.apache.oozie.AppType appType)
|
void |
setExpectedDuration(long expectedDuration)
|
void |
setExpectedEnd(Date expectedEnd)
|
void |
setExpectedStart(Date expectedStart)
|
void |
setId(String jobId)
|
void |
setJobData(String jobData)
|
void |
setMsgType(org.apache.oozie.client.event.Event.MessageType msgType)
|
void |
setNominalTime(Date nominalTime)
|
void |
setNotificationMsg(String notificationMsg)
|
void |
setParentId(String parentId)
|
void |
setSlaConfig(String configStr)
|
void |
setUpstreamApps(String upstreamApps)
|
void |
setUser(String user)
|
String |
slaConfigMapToString()
|
static org.json.simple.JSONArray |
toJSONArray(List<? extends SLARegistrationBean> events,
String timeZoneId)
Convert a SLARegistrationBean 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SLARegistrationBean()
public SLARegistrationBean(org.json.simple.JSONObject obj)
Method Detail |
---|
public String getId()
public void setId(String jobId)
public String getParentId()
public void setParentId(String parentId)
public String getAppName()
public void setAppName(String appName)
public org.apache.oozie.AppType getAppType()
public void setAppType(org.apache.oozie.AppType appType)
public Date getNominalTime()
public void setNominalTime(Date nominalTime)
public Date getExpectedStart()
public void setExpectedStart(Date expectedStart)
public Date getExpectedEnd()
public void setExpectedEnd(Date expectedEnd)
public long getExpectedDuration()
public void setExpectedDuration(long expectedDuration)
public String getUser()
public void setUser(String user)
public String getUpstreamApps()
public void setUpstreamApps(String upstreamApps)
public String getJobData()
public void setJobData(String jobData)
public String getSlaConfig()
public void setSlaConfig(String configStr)
public String getNotificationMsg()
public void setNotificationMsg(String notificationMsg)
public String getAlertEvents()
public void setAlertEvents(String alertEvents)
public String getAlertContact()
public void setAlertContact(String alertContact)
public Map<String,String> getSlaConfigMap()
public String slaConfigMapToString()
public org.json.simple.JSONObject toJSONObject()
JsonBean
toJSONObject
in interface JsonBean
public org.json.simple.JSONObject toJSONObject(String timeZoneId)
JsonBean
toJSONObject
in interface JsonBean
timeZoneId
- the time zone to use
public static org.json.simple.JSONArray toJSONArray(List<? extends SLARegistrationBean> events, String timeZoneId)
events
- SLARegistrationBean list.timeZoneId
- time zone to use for dates in the JSON array.
public static List<SLARegistrationBean> fromJSONArray(org.json.simple.JSONArray array)
array
- JSON array.
public org.apache.oozie.client.event.Event.MessageType getMsgType()
public void setMsgType(org.apache.oozie.client.event.Event.MessageType msgType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |