org.apache.oozie.client.rest
Class JsonSLAEvent
java.lang.Object
org.apache.oozie.client.rest.JsonSLAEvent
- All Implemented Interfaces:
- JsonBean, org.apache.oozie.client.SLAEvent
- Direct Known Subclasses:
- SLAEventBean
@Entity
public class JsonSLAEvent
- extends Object
- implements org.apache.oozie.client.SLAEvent, JsonBean
Nested classes/interfaces inherited from interface org.apache.oozie.client.SLAEvent |
org.apache.oozie.client.SLAEvent.SlaAppType, org.apache.oozie.client.SLAEvent.Status |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonSLAEvent
public JsonSLAEvent()
JsonSLAEvent
public JsonSLAEvent(org.json.simple.JSONObject json)
getEvent_id
public long getEvent_id()
- Specified by:
getEvent_id
in interface org.apache.oozie.client.SLAEvent
setEvent_id
public void setEvent_id(long id)
getSlaId
public String getSlaId()
- Specified by:
getSlaId
in interface org.apache.oozie.client.SLAEvent
setSlaId
public void setSlaId(String slaId)
getAppType
public org.apache.oozie.client.SLAEvent.SlaAppType getAppType()
- Specified by:
getAppType
in interface org.apache.oozie.client.SLAEvent
setAppType
public void setAppType(org.apache.oozie.client.SLAEvent.SlaAppType appType)
getAppName
public String getAppName()
- Specified by:
getAppName
in interface org.apache.oozie.client.SLAEvent
setAppName
public void setAppName(String appName)
getUser
public String getUser()
- Specified by:
getUser
in interface org.apache.oozie.client.SLAEvent
setUser
public void setUser(String user)
getGroupName
public String getGroupName()
- Specified by:
getGroupName
in interface org.apache.oozie.client.SLAEvent
setGroupName
public void setGroupName(String groupName)
getParentClientId
public String getParentClientId()
- Specified by:
getParentClientId
in interface org.apache.oozie.client.SLAEvent
setParentClientId
public void setParentClientId(String parentClientId)
getParentSlaId
public String getParentSlaId()
- Specified by:
getParentSlaId
in interface org.apache.oozie.client.SLAEvent
setParentSlaId
public void setParentSlaId(String parentSlaId)
getExpectedStart
public Date getExpectedStart()
- Specified by:
getExpectedStart
in interface org.apache.oozie.client.SLAEvent
setExpectedStart
public void setExpectedStart(Date expectedStart)
getExpectedEnd
public Date getExpectedEnd()
- Specified by:
getExpectedEnd
in interface org.apache.oozie.client.SLAEvent
setExpectedEnd
public void setExpectedEnd(Date expectedEnd)
getStatusTimestamp
public Date getStatusTimestamp()
- Specified by:
getStatusTimestamp
in interface org.apache.oozie.client.SLAEvent
setStatusTimestamp
public void setStatusTimestamp(Date statusTimestamp)
getNotificationMsg
public String getNotificationMsg()
- Specified by:
getNotificationMsg
in interface org.apache.oozie.client.SLAEvent
setNotificationMsg
public void setNotificationMsg(String notificationMsg)
getAlertContact
public String getAlertContact()
- Specified by:
getAlertContact
in interface org.apache.oozie.client.SLAEvent
setAlertContact
public void setAlertContact(String alertContact)
getDevContact
public String getDevContact()
- Specified by:
getDevContact
in interface org.apache.oozie.client.SLAEvent
setDevContact
public void setDevContact(String devContact)
getQaContact
public String getQaContact()
- Specified by:
getQaContact
in interface org.apache.oozie.client.SLAEvent
setQaContact
public void setQaContact(String qaContact)
getSeContact
public String getSeContact()
- Specified by:
getSeContact
in interface org.apache.oozie.client.SLAEvent
setSeContact
public void setSeContact(String seContact)
getAlertFrequency
public String getAlertFrequency()
- Specified by:
getAlertFrequency
in interface org.apache.oozie.client.SLAEvent
setAlertFrequency
public void setAlertFrequency(String alertFrequency)
getAlertPercentage
public String getAlertPercentage()
- Specified by:
getAlertPercentage
in interface org.apache.oozie.client.SLAEvent
setAlertPercentage
public void setAlertPercentage(String alertPercentage)
getUpstreamApps
public String getUpstreamApps()
- Specified by:
getUpstreamApps
in interface org.apache.oozie.client.SLAEvent
setUpstreamApps
public void setUpstreamApps(String upstreamApps)
getJobStatus
public org.apache.oozie.client.SLAEvent.Status getJobStatus()
- Specified by:
getJobStatus
in interface org.apache.oozie.client.SLAEvent
setJobStatus
public void setJobStatus(org.apache.oozie.client.SLAEvent.Status jobStatus)
getJobData
public String getJobData()
- Specified by:
getJobData
in interface org.apache.oozie.client.SLAEvent
setJobData
public void setJobData(String jobData)
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.
Copyright © 2013 Apache Software Foundation. All Rights Reserved.