org.apache.oozie
Class SLAEventBean
java.lang.Object
org.apache.oozie.client.rest.JsonSLAEvent
org.apache.oozie.SLAEventBean
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, JsonBean, org.apache.oozie.client.SLAEvent
@Entity
public class SLAEventBean
- extends JsonSLAEvent
- implements org.apache.hadoop.io.Writable
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 org.apache.oozie.client.rest.JsonSLAEvent |
getAlertContact, getAlertFrequency, getAlertPercentage, getAppName, getDevContact, getEvent_id, getGroupName, getJobData, getNotificationMsg, getParentClientId, getParentSlaId, getQaContact, getSeContact, getSlaId, getUpstreamApps, getUser, setAlertContact, setAlertFrequency, setAlertPercentage, setAppName, setDevContact, setEvent_id, setGroupName, setJobData, setNotificationMsg, setParentClientId, setParentSlaId, setQaContact, setSeContact, setSlaId, setUpstreamApps, setUser, toJSONObject, toJSONObject |
SLAEventBean
public SLAEventBean()
getJobStatusStr
public String getJobStatusStr()
setJobStatusStr
public void setJobStatusStr(String jobStatusStr)
getJobStatus
public org.apache.oozie.client.SLAEvent.Status getJobStatus()
- Specified by:
getJobStatus
in interface org.apache.oozie.client.SLAEvent
- Overrides:
getJobStatus
in class JsonSLAEvent
setJobStatus
public void setJobStatus(org.apache.oozie.client.SLAEvent.Status jobStatus)
- Overrides:
setJobStatus
in class JsonSLAEvent
getAppTypeStr
public String getAppTypeStr()
setAppTypeStr
public void setAppTypeStr(String appTypeStr)
getAppType
public org.apache.oozie.client.SLAEvent.SlaAppType getAppType()
- Specified by:
getAppType
in interface org.apache.oozie.client.SLAEvent
- Overrides:
getAppType
in class JsonSLAEvent
setAppType
public void setAppType(org.apache.oozie.client.SLAEvent.SlaAppType appType)
- Overrides:
setAppType
in class JsonSLAEvent
getExpectedStartTS
public Timestamp getExpectedStartTS()
getExpectedStart
public Date getExpectedStart()
- Specified by:
getExpectedStart
in interface org.apache.oozie.client.SLAEvent
- Overrides:
getExpectedStart
in class JsonSLAEvent
setExpectedStart
public void setExpectedStart(Date expectedStart)
- Overrides:
setExpectedStart
in class JsonSLAEvent
getExpectedEndTS
public Timestamp getExpectedEndTS()
getExpectedEnd
public Date getExpectedEnd()
- Specified by:
getExpectedEnd
in interface org.apache.oozie.client.SLAEvent
- Overrides:
getExpectedEnd
in class JsonSLAEvent
setExpectedEnd
public void setExpectedEnd(Date expectedEnd)
- Overrides:
setExpectedEnd
in class JsonSLAEvent
getStatusTimestampTS
public Timestamp getStatusTimestampTS()
getStatusTimestamp
public Date getStatusTimestamp()
- Specified by:
getStatusTimestamp
in interface org.apache.oozie.client.SLAEvent
- Overrides:
getStatusTimestamp
in class JsonSLAEvent
setStatusTimestamp
public void setStatusTimestamp(Date statusTimestamp)
- Overrides:
setStatusTimestamp
in class JsonSLAEvent
getEventType
public String getEventType()
setEventType
public void setEventType(String eventType)
readFields
public void readFields(DataInput arg0)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput arg0)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
toJSONArray
public static org.json.simple.JSONArray toJSONArray(List<? extends SLAEventBean> events,
String timeZoneId)
- Convert a SLAEvent list into a JSONArray.
- Parameters:
SLAEVent
- list.timeZoneId
- time zone to use for dates in the JSON array.
- Returns:
- the corresponding JSON array.
fromJSONArray
public static List<org.apache.oozie.client.SLAEvent> fromJSONArray(org.json.simple.JSONArray array)
- Convert a JSONArray into a SLAEvent list.
- Parameters:
array
- JSON array.
- Returns:
- the corresponding SLA event list.
toXml
public org.jdom.Element toXml()
Copyright © 2013 Apache Software Foundation. All Rights Reserved.