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, setMessageType
public 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
- public Date getExpectedStartTime()
public void setExpectedStartTime(Date expectedStartTime)
expectedStartTime
- public Date getActualStartTime()
public void setActualStartTime(Date actualStartTime)
actualStartTime
- public Date getExpectedEndTime()
public void setExpectedEndTime(Date expectedEndTime)
expectedEndTime
- public Date getActualEndTime()
public void setActualEndTime(Date actualEndTime)
actualEndTime
- public 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
- public String getUpstreamApps()
public void setUpstreamApps(String upstreamApps)
upstreamApps
- public String getAppName()
public void setAppName(String appName)
appName
- public SLAEvent.EventStatus getEventStatus()
public void setEventStatus(SLAEvent.EventStatus eventStatus)
eventStatus
- public SLAEvent.SLAStatus getSLAStatus()
public void setSLAStatus(SLAEvent.SLAStatus slaStatus)
slaStatus
- public void setProperties(javax.jms.Message message) throws javax.jms.JMSException
setProperties
in class EventMessage
message
- the JMS messagejavax.jms.JMSException
Copyright © 2018 Apache Software Foundation. All rights reserved.