org.apache.oozie.sla
Class SLARegistrationBean

java.lang.Object
  extended by org.apache.oozie.sla.SLARegistrationBean
All Implemented Interfaces:
JsonBean

@Entity
public class SLARegistrationBean
extends Object
implements JsonBean


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

SLARegistrationBean

public SLARegistrationBean()

SLARegistrationBean

public SLARegistrationBean(org.json.simple.JSONObject obj)
Method Detail

getId

public String getId()

setId

public void setId(String jobId)

getParentId

public String getParentId()

setParentId

public void setParentId(String parentId)

getAppName

public String getAppName()

setAppName

public void setAppName(String appName)

getAppType

public org.apache.oozie.AppType getAppType()

setAppType

public void setAppType(org.apache.oozie.AppType appType)

getNominalTime

public Date getNominalTime()

setNominalTime

public void setNominalTime(Date nominalTime)

getExpectedStart

public Date getExpectedStart()

setExpectedStart

public void setExpectedStart(Date expectedStart)

getExpectedEnd

public Date getExpectedEnd()

setExpectedEnd

public void setExpectedEnd(Date expectedEnd)

getExpectedDuration

public long getExpectedDuration()

setExpectedDuration

public void setExpectedDuration(long expectedDuration)

getUser

public String getUser()

setUser

public void setUser(String user)

getUpstreamApps

public String getUpstreamApps()

setUpstreamApps

public void setUpstreamApps(String upstreamApps)

getJobData

public String getJobData()

setJobData

public void setJobData(String jobData)

getSlaConfig

public String getSlaConfig()

setSlaConfig

public void setSlaConfig(String configStr)

getNotificationMsg

public String getNotificationMsg()

setNotificationMsg

public void setNotificationMsg(String notificationMsg)

getAlertEvents

public String getAlertEvents()

setAlertEvents

public void setAlertEvents(String alertEvents)

getAlertContact

public String getAlertContact()

setAlertContact

public void setAlertContact(String alertContact)

getSlaConfigMap

public Map<String,String> getSlaConfigMap()

slaConfigMapToString

public String slaConfigMapToString()

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.

toJSONArray

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

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

fromJSONArray

public static List<SLARegistrationBean> fromJSONArray(org.json.simple.JSONArray array)
Convert a JSONArray into a SLARegistrationBean list.

Parameters:
array - JSON array.
Returns:
the corresponding SLA SLARegistrationBean list.

getMsgType

public org.apache.oozie.client.event.Event.MessageType getMsgType()

setMsgType

public void setMsgType(org.apache.oozie.client.event.Event.MessageType msgType)


Copyright © 2013 Apache Software Foundation. All Rights Reserved.