public class JobMessage extends EventMessage
| Constructor and Description |
|---|
JobMessage()
Default constructor
|
JobMessage(JobEvent.EventStatus eventStatus,
AppType appType,
String id,
String parentId,
Date startTime,
Date endTime,
String user,
String appName)
Constructs a job message
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAppName()
Gets the job's app name
|
Date |
getEndTime()
Gets the job end time
|
JobEvent.EventStatus |
getEventStatus()
Gets the event status
|
String |
getId()
Gets the job id
|
Map<String,String> |
getMessageProperties()
Gets the message properties
|
String |
getParentId()
Gets the parent job id
|
Date |
getStartTime()
Gets the job start time
|
String |
getUser()
Gets the job user
|
void |
setAppName(String appName)
Sets the job's app name for message
|
void |
setEndTime(Date endTime)
Sets the job end time for message
|
void |
setEventStatus(JobEvent.EventStatus eventStatus)
Sets the event status
|
void |
setId(String id)
Sets the Job id for message
|
void |
setParentId(String parentId)
Sets the parent job id for message
|
void |
setProperties(javax.jms.Message message)
Set the JMS selector properties for message object
|
void |
setStartTime(Date startTime)
Sets the job start time for message
|
void |
setUser(String user)
sets the job user for the msg
|
getAppType, getMessageType, setAppType, setMessageTypepublic JobMessage()
public JobMessage(JobEvent.EventStatus eventStatus, AppType appType, String id, String parentId, Date startTime, Date endTime, String user, String appName)
eventStatus - the event statusappType - the appType for eventid - the id of jobparentId - the parent id of jobstartTime - the start time of jobendTime - the end time of jobuser - user of the jobappName - appName for jobpublic void setParentId(String parentId)
parentId - the parent job idpublic String getParentId()
public void setStartTime(Date startTime)
startTime - public Date getStartTime()
public void setEndTime(Date endTime)
endTime - public Date getEndTime()
public void setAppName(String appName)
appName - public String getAppName()
public Map<String,String> getMessageProperties()
public void setEventStatus(JobEvent.EventStatus eventStatus)
eventStatus - public JobEvent.EventStatus getEventStatus()
public void setProperties(javax.jms.Message message) throws javax.jms.JMSException
EventMessagesetProperties in class EventMessagejavax.jms.JMSExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.