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.SLAEventpublic void setActualStart(Date actualStart)
public Date getActualEnd()
getActualEnd in class org.apache.oozie.client.event.SLAEventpublic void setActualEnd(Date actualEnd)
public long getActualDuration()
getActualDuration in class org.apache.oozie.client.event.SLAEventpublic void setActualDuration(long actualDuration)
public String getJobStatus()
getJobStatus in class org.apache.oozie.client.event.SLAEventpublic void setJobStatus(String status)
public org.apache.oozie.client.event.SLAEvent.SLAStatus getSLAStatus()
getSLAStatus in class org.apache.oozie.client.event.SLAEventpublic 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.SLAEventpublic 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.SLAEventpublic org.apache.oozie.AppType getAppType()
getAppType in class org.apache.oozie.client.event.SLAEventpublic String getAppName()
getAppName in class org.apache.oozie.client.event.SLAEventpublic Date getNominalTime()
getNominalTime in class org.apache.oozie.client.event.SLAEventpublic Date getExpectedStart()
getExpectedStart in class org.apache.oozie.client.event.SLAEventpublic Date getExpectedEnd()
getExpectedEnd in class org.apache.oozie.client.event.SLAEventpublic long getExpectedDuration()
getExpectedDuration in class org.apache.oozie.client.event.SLAEventpublic String getNotificationMsg()
getNotificationMsg in class org.apache.oozie.client.event.SLAEventpublic String getAlertEvents()
getAlertEvents in class org.apache.oozie.client.event.SLAEventpublic String getAlertContact()
getAlertContact in class org.apache.oozie.client.event.SLAEventpublic String getUpstreamApps()
getUpstreamApps in class org.apache.oozie.client.event.SLAEventpublic String getJobData()
getJobData in class org.apache.oozie.client.event.SLAEventpublic String getUser()
getUser in class org.apache.oozie.client.event.SLAEventpublic String getSlaConfig()
getSlaConfig in class org.apache.oozie.client.event.SLAEventpublic org.apache.oozie.client.event.Event.MessageType getMsgType()
getMsgType in class org.apache.oozie.client.event.SLAEventpublic Date getLastModifiedTime()
getLastModifiedTime in class org.apache.oozie.client.event.SLAEventpublic 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.