public class SLACalcStatus extends org.apache.oozie.client.event.SLAEvent
Modifier and Type | Field and Description |
---|---|
static String |
SLA_ENTITYKEY_PREFIX |
Constructor and Description |
---|
SLACalcStatus() |
SLACalcStatus(SLACalcStatus a)
copy constructor
|
SLACalcStatus(SLARegistrationBean reg) |
SLACalcStatus(SLASummaryBean summary,
SLARegistrationBean regBean) |
Modifier and Type | Method and Description |
---|---|
void |
acquireLock()
Obtain an exclusive lock on the {link #getEntityKey}.
|
long |
getActualDuration() |
Date |
getActualEnd() |
Date |
getActualStart() |
String |
getAlertContact() |
String |
getAlertEvents() |
String |
getAppName() |
org.apache.oozie.AppType |
getAppType() |
String |
getEntityKey() |
byte |
getEventProcessed()
Get which type of sla event has been processed needed when calculator
periodically loops to update all jobs' sla
|
org.apache.oozie.client.event.SLAEvent.EventStatus |
getEventStatus() |
long |
getExpectedDuration() |
Date |
getExpectedEnd() |
Date |
getExpectedStart() |
String |
getId() |
String |
getJobData() |
String |
getJobStatus() |
Date |
getLastModifiedTime() |
long |
getLockTimeOut() |
org.apache.oozie.client.event.Event.MessageType |
getMsgType() |
Date |
getNominalTime() |
String |
getNotificationMsg() |
String |
getParentId() |
String |
getSlaConfig() |
SLARegistrationBean |
getSLARegistrationBean() |
org.apache.oozie.client.event.SLAEvent.SLAStatus |
getSLAStatus() |
String |
getUpstreamApps() |
String |
getUser() |
boolean |
isLocked() |
void |
releaseLock() |
void |
setActualDuration(long actualDuration) |
void |
setActualEnd(Date actualEnd) |
void |
setActualStart(Date actualStart) |
void |
setEventProcessed(int eventProcessed) |
void |
setEventStatus(org.apache.oozie.client.event.SLAEvent.EventStatus es) |
void |
setId(String id) |
void |
setJobStatus(String status) |
void |
setLastModifiedTime(Date lastModifiedTime) |
void |
setSLARegistrationBean(SLARegistrationBean slaBean) |
void |
setSLAStatus(org.apache.oozie.client.event.SLAEvent.SLAStatus slaStatus) |
public static String SLA_ENTITYKEY_PREFIX
public SLACalcStatus(SLARegistrationBean reg)
public SLACalcStatus(SLASummaryBean summary, SLARegistrationBean regBean)
public SLACalcStatus(SLACalcStatus a)
public SLACalcStatus()
public SLARegistrationBean getSLARegistrationBean()
public void setSLARegistrationBean(SLARegistrationBean slaBean)
public Date getActualStart()
getActualStart
in class org.apache.oozie.client.event.SLAEvent
public void setActualStart(Date actualStart)
public Date getActualEnd()
getActualEnd
in class org.apache.oozie.client.event.SLAEvent
public void setActualEnd(Date actualEnd)
public long getActualDuration()
getActualDuration
in class org.apache.oozie.client.event.SLAEvent
public void setActualDuration(long actualDuration)
public String getJobStatus()
getJobStatus
in class org.apache.oozie.client.event.SLAEvent
public void setJobStatus(String status)
public org.apache.oozie.client.event.SLAEvent.SLAStatus getSLAStatus()
getSLAStatus
in class org.apache.oozie.client.event.SLAEvent
public void setSLAStatus(org.apache.oozie.client.event.SLAEvent.SLAStatus slaStatus)
public org.apache.oozie.client.event.SLAEvent.EventStatus getEventStatus()
getEventStatus
in class org.apache.oozie.client.event.SLAEvent
public void setEventStatus(org.apache.oozie.client.event.SLAEvent.EventStatus es)
public void setLastModifiedTime(Date lastModifiedTime)
public byte getEventProcessed()
public void setEventProcessed(int eventProcessed)
public String getParentId()
getParentId
in class org.apache.oozie.client.event.SLAEvent
public org.apache.oozie.AppType getAppType()
getAppType
in class org.apache.oozie.client.event.SLAEvent
public String getAppName()
getAppName
in class org.apache.oozie.client.event.SLAEvent
public Date getNominalTime()
getNominalTime
in class org.apache.oozie.client.event.SLAEvent
public Date getExpectedStart()
getExpectedStart
in class org.apache.oozie.client.event.SLAEvent
public Date getExpectedEnd()
getExpectedEnd
in class org.apache.oozie.client.event.SLAEvent
public long getExpectedDuration()
getExpectedDuration
in class org.apache.oozie.client.event.SLAEvent
public String getNotificationMsg()
getNotificationMsg
in class org.apache.oozie.client.event.SLAEvent
public String getAlertEvents()
getAlertEvents
in class org.apache.oozie.client.event.SLAEvent
public String getAlertContact()
getAlertContact
in class org.apache.oozie.client.event.SLAEvent
public String getUpstreamApps()
getUpstreamApps
in class org.apache.oozie.client.event.SLAEvent
public String getJobData()
getJobData
in class org.apache.oozie.client.event.SLAEvent
public String getUser()
getUser
in class org.apache.oozie.client.event.SLAEvent
public String getSlaConfig()
getSlaConfig
in class org.apache.oozie.client.event.SLAEvent
public org.apache.oozie.client.event.Event.MessageType getMsgType()
getMsgType
in class org.apache.oozie.client.event.SLAEvent
public Date getLastModifiedTime()
getLastModifiedTime
in class org.apache.oozie.client.event.SLAEvent
public String getEntityKey()
public void acquireLock() throws InterruptedException
InterruptedException
- thrown if an interruption happened while trying to obtain the lockpublic boolean isLocked()
public void releaseLock()
public long getLockTimeOut()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.