org.apache.oozie.sla
Class SLACalcStatus
java.lang.Object
org.apache.oozie.client.event.Event
org.apache.oozie.client.event.SLAEvent
org.apache.oozie.sla.SLACalcStatus
public class SLACalcStatus
- extends org.apache.oozie.client.event.SLAEvent
Class used by SLAService to store SLA objects and perform calculations and
sla decisions
Nested classes/interfaces inherited from class org.apache.oozie.client.event.SLAEvent |
org.apache.oozie.client.event.SLAEvent.EventStatus, org.apache.oozie.client.event.SLAEvent.SLAStatus |
Nested classes/interfaces inherited from class org.apache.oozie.client.event.Event |
org.apache.oozie.client.event.Event.MessageType |
Fields inherited from class org.apache.oozie.client.event.Event |
msgType |
Methods inherited from class org.apache.oozie.client.event.SLAEvent |
toString |
Methods inherited from class org.apache.oozie.client.event.Event |
setMsgType |
SLACalcStatus
public SLACalcStatus(SLARegistrationBean reg)
SLACalcStatus
public SLACalcStatus(SLASummaryBean summary,
SLARegistrationBean regBean)
SLACalcStatus
public SLACalcStatus(SLACalcStatus a)
- copy constructor
SLACalcStatus
public SLACalcStatus()
getSLARegistrationBean
public SLARegistrationBean getSLARegistrationBean()
setSLARegistrationBean
public void setSLARegistrationBean(SLARegistrationBean slaBean)
getId
public String getId()
- Specified by:
getId
in class org.apache.oozie.client.event.SLAEvent
setId
public void setId(String id)
getActualStart
public Date getActualStart()
- Specified by:
getActualStart
in class org.apache.oozie.client.event.SLAEvent
setActualStart
public void setActualStart(Date actualStart)
getActualEnd
public Date getActualEnd()
- Specified by:
getActualEnd
in class org.apache.oozie.client.event.SLAEvent
setActualEnd
public void setActualEnd(Date actualEnd)
getActualDuration
public long getActualDuration()
- Specified by:
getActualDuration
in class org.apache.oozie.client.event.SLAEvent
setActualDuration
public void setActualDuration(long actualDuration)
getJobStatus
public String getJobStatus()
- Specified by:
getJobStatus
in class org.apache.oozie.client.event.SLAEvent
setJobStatus
public void setJobStatus(String status)
getSLAStatus
public org.apache.oozie.client.event.SLAEvent.SLAStatus getSLAStatus()
- Specified by:
getSLAStatus
in class org.apache.oozie.client.event.SLAEvent
setSLAStatus
public void setSLAStatus(org.apache.oozie.client.event.SLAEvent.SLAStatus slaStatus)
getEventStatus
public org.apache.oozie.client.event.SLAEvent.EventStatus getEventStatus()
- Specified by:
getEventStatus
in class org.apache.oozie.client.event.SLAEvent
setEventStatus
public void setEventStatus(org.apache.oozie.client.event.SLAEvent.EventStatus es)
setLastModifiedTime
public void setLastModifiedTime(Date lastModifiedTime)
getEventProcessed
public byte getEventProcessed()
- Get which type of sla event has been processed needed when calculator
periodically loops to update all jobs' sla
- Returns:
- byte 1st bit set (from LSB) = start processed
2nd bit set = duration processed
3rd bit set = end processed
only 4th bit set = everything processed
setEventProcessed
public void setEventProcessed(int eventProcessed)
getParentId
public String getParentId()
- Specified by:
getParentId
in class org.apache.oozie.client.event.SLAEvent
getAppType
public org.apache.oozie.AppType getAppType()
- Specified by:
getAppType
in class org.apache.oozie.client.event.SLAEvent
getAppName
public String getAppName()
- Specified by:
getAppName
in class org.apache.oozie.client.event.SLAEvent
getNominalTime
public Date getNominalTime()
- Specified by:
getNominalTime
in class org.apache.oozie.client.event.SLAEvent
getExpectedStart
public Date getExpectedStart()
- Specified by:
getExpectedStart
in class org.apache.oozie.client.event.SLAEvent
getExpectedEnd
public Date getExpectedEnd()
- Specified by:
getExpectedEnd
in class org.apache.oozie.client.event.SLAEvent
getExpectedDuration
public long getExpectedDuration()
- Specified by:
getExpectedDuration
in class org.apache.oozie.client.event.SLAEvent
getNotificationMsg
public String getNotificationMsg()
- Specified by:
getNotificationMsg
in class org.apache.oozie.client.event.SLAEvent
getAlertEvents
public String getAlertEvents()
- Specified by:
getAlertEvents
in class org.apache.oozie.client.event.SLAEvent
getAlertContact
public String getAlertContact()
- Specified by:
getAlertContact
in class org.apache.oozie.client.event.SLAEvent
getUpstreamApps
public String getUpstreamApps()
- Specified by:
getUpstreamApps
in class org.apache.oozie.client.event.SLAEvent
getJobData
public String getJobData()
- Specified by:
getJobData
in class org.apache.oozie.client.event.SLAEvent
getUser
public String getUser()
- Specified by:
getUser
in class org.apache.oozie.client.event.SLAEvent
getSlaConfig
public String getSlaConfig()
- Specified by:
getSlaConfig
in class org.apache.oozie.client.event.SLAEvent
getMsgType
public org.apache.oozie.client.event.Event.MessageType getMsgType()
- Overrides:
getMsgType
in class org.apache.oozie.client.event.SLAEvent
getLastModifiedTime
public Date getLastModifiedTime()
- Specified by:
getLastModifiedTime
in class org.apache.oozie.client.event.SLAEvent
Copyright © 2013 Apache Software Foundation. All Rights Reserved.