public class SLAMessage extends EventMessage
| Constructor and Description |
|---|
SLAMessage() |
SLAMessage(SLAEvent.EventStatus eventStatus,
SLAEvent.SLAStatus slaStatus,
AppType appType,
String appName,
String user,
String jobId,
String parentJobId,
Date nominalTime,
Date expectedStartTime,
Date actualStartTime,
Date expectedEndTime,
Date actualEndTime,
long expectedDuration,
long actualDuration,
String notificationMessage,
String upstreamApps) |
| Modifier and Type | Method and Description |
|---|---|
long |
getActualDuration()
Get actual duration (in milliseconds)
|
Date |
getActualEndTime()
Get actual end time
|
Date |
getActualStartTime()
Get actual start time
|
String |
getAppName()
Get application name
|
SLAEvent.EventStatus |
getEventStatus()
Get event status
|
long |
getExpectedDuration()
Get expected duration time (in milliseconds)
|
Date |
getExpectedEndTime()
Get expected end time
|
Date |
getExpectedStartTime()
Get expected start time
|
String |
getId()
Get the job Id
|
Date |
getNominalTime()
Get nominal time
|
String |
getNotificationMessage()
Get notification message
|
String |
getParentId()
Gets the parent job id
|
SLAEvent.SLAStatus |
getSLAStatus()
Get SLA status
|
String |
getUpstreamApps()
Get upstream app names
|
String |
getUser()
Get user name
|
void |
setActualDuration(long actualDuration)
Set actual duration (in milliseconds) for message
|
void |
setActualEndTime(Date actualEndTime)
Set actual end time for message
|
void |
setActualStartTime(Date actualStartTime)
Set actual start time for message
|
void |
setAppName(String appName)
Set application name for message
|
void |
setEventStatus(SLAEvent.EventStatus eventStatus)
Set event status
|
void |
setExpectedDuration(long expectedDuration)
Set expected duration (in milliseconds) for message
|
void |
setExpectedEndTime(Date expectedEndTime)
Set expected end time for message
|
void |
setExpectedStartTime(Date expectedStartTime)
Set expected start time for message
|
void |
setId(String id)
Set the job Id for message
|
void |
setNominalTime(Date nominalTime)
Set nominal time for message
|
void |
setNotificationMessage(String notificationMessage)
Set notification message
|
void |
setParentId(String parentId)
Set the parent job Id for message
|
void |
setProperties(javax.jms.Message message)
Set the JMS properties for SLA message
|
void |
setSLAStatus(SLAEvent.SLAStatus slaStatus)
Set SLA status for message
|
void |
setUpstreamApps(String upstreamApps)
Set upstream app names
|
void |
setUser(String user)
Set user name for message
|
getAppType, getMessageType, setAppType, setMessageTypepublic SLAMessage()
public SLAMessage(SLAEvent.EventStatus eventStatus, SLAEvent.SLAStatus slaStatus, AppType appType, String appName, String user, String jobId, String parentJobId, Date nominalTime, Date expectedStartTime, Date actualStartTime, Date expectedEndTime, Date actualEndTime, long expectedDuration, long actualDuration, String notificationMessage, String upstreamApps)
public String getParentId()
public void setParentId(String parentId)
parentId - the parent job Idpublic Date getNominalTime()
public void setNominalTime(Date nominalTime)
nominalTime - the nominal timepublic Date getExpectedStartTime()
public void setExpectedStartTime(Date expectedStartTime)
expectedStartTime - the expected start timepublic Date getActualStartTime()
public void setActualStartTime(Date actualStartTime)
actualStartTime - the actual start timepublic Date getExpectedEndTime()
public void setExpectedEndTime(Date expectedEndTime)
expectedEndTime - the expected end timepublic Date getActualEndTime()
public void setActualEndTime(Date actualEndTime)
actualEndTime - the actual end timepublic long getExpectedDuration()
public void setExpectedDuration(long expectedDuration)
expectedDuration - (in milliseconds)public long getActualDuration()
public void setActualDuration(long actualDuration)
actualDuration - (in milliseconds)public String getNotificationMessage()
public void setNotificationMessage(String notificationMessage)
notificationMessage - the messagepublic String getUpstreamApps()
public void setUpstreamApps(String upstreamApps)
upstreamApps - the upstream app namespublic String getAppName()
public void setAppName(String appName)
appName - the application namepublic SLAEvent.EventStatus getEventStatus()
public void setEventStatus(SLAEvent.EventStatus eventStatus)
eventStatus - the event statuspublic SLAEvent.SLAStatus getSLAStatus()
public void setSLAStatus(SLAEvent.SLAStatus slaStatus)
slaStatus - the sla statuspublic void setProperties(javax.jms.Message message) throws javax.jms.JMSException
setProperties in class EventMessagemessage - the JMS messagejavax.jms.JMSException - in case of a JMS errorCopyright © 2020 Apache Software Foundation. All rights reserved.