org.apache.oozie
Class SLAEventBean

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonSLAEvent
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.apache.oozie.client.SLAEvent
org.apache.oozie.client.SLAEvent.SlaAppType, org.apache.oozie.client.SLAEvent.Status
 
Constructor Summary
SLAEventBean()
           
 
Method Summary
static List<org.apache.oozie.client.SLAEvent> fromJSONArray(org.json.simple.JSONArray array)
          Convert a JSONArray into a SLAEvent list.
 org.apache.oozie.client.SLAEvent.SlaAppType getAppType()
           
 String getAppTypeStr()
           
 String getEventType()
           
 Date getExpectedEnd()
           
 Timestamp getExpectedEndTS()
           
 Date getExpectedStart()
           
 Timestamp getExpectedStartTS()
           
 org.apache.oozie.client.SLAEvent.Status getJobStatus()
           
 String getJobStatusStr()
           
 Date getStatusTimestamp()
           
 Timestamp getStatusTimestampTS()
           
 void readFields(DataInput arg0)
           
 void setAppType(org.apache.oozie.client.SLAEvent.SlaAppType appType)
           
 void setAppTypeStr(String appTypeStr)
           
 void setEventType(String eventType)
           
 void setExpectedEnd(Date expectedEnd)
           
 void setExpectedStart(Date expectedStart)
           
 void setJobStatus(org.apache.oozie.client.SLAEvent.Status jobStatus)
           
 void setJobStatusStr(String jobStatusStr)
           
 void setStatusTimestamp(Date statusTimestamp)
           
static org.json.simple.JSONArray toJSONArray(List<? extends SLAEventBean> events, String timeZoneId)
          Convert a SLAEvent list into a JSONArray.
 String toString()
           
 org.jdom.Element toXml()
           
 void write(DataOutput arg0)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SLAEventBean

public SLAEventBean()
Method Detail

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.