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, SLAEvent
public class SLAEventBean
- extends JsonSLAEvent
- implements org.apache.hadoop.io.Writable
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SLAEventBean
public SLAEventBean()
getJobStatusStr
public java.lang.String getJobStatusStr()
setJobStatusStr
public void setJobStatusStr(java.lang.String jobStatusStr)
getJobStatus
public SLAEvent.Status getJobStatus()
- Specified by:
getJobStatus
in interface SLAEvent
- Overrides:
getJobStatus
in class JsonSLAEvent
setJobStatus
public void setJobStatus(SLAEvent.Status jobStatus)
- Overrides:
setJobStatus
in class JsonSLAEvent
getAppTypeStr
public java.lang.String getAppTypeStr()
setAppTypeStr
public void setAppTypeStr(java.lang.String appTypeStr)
getAppType
public SLAEvent.SlaAppType getAppType()
- Specified by:
getAppType
in interface SLAEvent
- Overrides:
getAppType
in class JsonSLAEvent
setAppType
public void setAppType(SLAEvent.SlaAppType appType)
- Overrides:
setAppType
in class JsonSLAEvent
getExpectedStartTS
public java.sql.Timestamp getExpectedStartTS()
getExpectedStart
public java.util.Date getExpectedStart()
- Specified by:
getExpectedStart
in interface SLAEvent
- Overrides:
getExpectedStart
in class JsonSLAEvent
setExpectedStart
public void setExpectedStart(java.util.Date expectedStart)
- Overrides:
setExpectedStart
in class JsonSLAEvent
getExpectedEndTS
public java.sql.Timestamp getExpectedEndTS()
getExpectedEnd
public java.util.Date getExpectedEnd()
- Specified by:
getExpectedEnd
in interface SLAEvent
- Overrides:
getExpectedEnd
in class JsonSLAEvent
setExpectedEnd
public void setExpectedEnd(java.util.Date expectedEnd)
- Overrides:
setExpectedEnd
in class JsonSLAEvent
getStatusTimestampTS
public java.sql.Timestamp getStatusTimestampTS()
getStatusTimestamp
public java.util.Date getStatusTimestamp()
- Specified by:
getStatusTimestamp
in interface SLAEvent
- Overrides:
getStatusTimestamp
in class JsonSLAEvent
setStatusTimestamp
public void setStatusTimestamp(java.util.Date statusTimestamp)
- Overrides:
setStatusTimestamp
in class JsonSLAEvent
getEventType
public java.lang.String getEventType()
setEventType
public void setEventType(java.lang.String eventType)
readFields
public void readFields(java.io.DataInput arg0)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput arg0)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toJSONArray
public static org.json.simple.JSONArray toJSONArray(java.util.List<? extends SLAEventBean> events)
- Convert a SLAEvent list into a JSONArray.
- Parameters:
SLAEVent
- list.
- Returns:
- the corresponding JSON array.
fromJSONArray
public static java.util.List<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 © 2010 Yahoo. All Rights Reserved.