org.apache.oozie.client.event.message
Class JobMessage

java.lang.Object
  extended by org.apache.oozie.client.event.message.EventMessage
      extended by org.apache.oozie.client.event.message.JobMessage
Direct Known Subclasses:
CoordinatorActionMessage, WorkflowJobMessage

public class JobMessage
extends EventMessage

Class holding attributes related to a job message


Constructor Summary
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
 
Method Summary
 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
 
Methods inherited from class org.apache.oozie.client.event.message.EventMessage
getAppType, getMessageType, setAppType, setMessageType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobMessage

public JobMessage()
Default constructor


JobMessage

public JobMessage(JobEvent.EventStatus eventStatus,
                  AppType appType,
                  String id,
                  String parentId,
                  Date startTime,
                  Date endTime,
                  String user,
                  String appName)
Constructs a job message

Parameters:
eventStatus - the event status
appType - the appType for event
id - the id of job
parentId - the parent id of job
startTime - the start time of job
endTime - the end time of job
user - user of the job
appName - appName for job
Method Detail

setId

public void setId(String id)
Sets the Job id for message

Parameters:
id - the job id

getId

public String getId()
Gets the job id

Returns:
the Job id

setParentId

public void setParentId(String parentId)
Sets the parent job id for message

Parameters:
parentId - the parent job id

getParentId

public String getParentId()
Gets the parent job id

Returns:
the parentId

setStartTime

public void setStartTime(Date startTime)
Sets the job start time for message

Parameters:
startTime -

getStartTime

public Date getStartTime()
Gets the job start time

Returns:
the start time

setEndTime

public void setEndTime(Date endTime)
Sets the job end time for message

Parameters:
endTime -

getEndTime

public Date getEndTime()
Gets the job end time

Returns:
the end time

setAppName

public void setAppName(String appName)
Sets the job's app name for message

Parameters:
appName -

getAppName

public String getAppName()
Gets the job's app name

Returns:
the app name

getMessageProperties

public Map<String,String> getMessageProperties()
Gets the message properties

Returns:
the message properties

setUser

public void setUser(String user)
sets the job user for the msg

Parameters:
user -

getUser

public String getUser()
Gets the job user

Returns:
the user

setEventStatus

public void setEventStatus(JobEvent.EventStatus eventStatus)
Sets the event status

Parameters:
eventStatus -

getEventStatus

public JobEvent.EventStatus getEventStatus()
Gets the event status

Returns:
the event status

setProperties

public void setProperties(javax.jms.Message message)
                   throws javax.jms.JMSException
Description copied from class: EventMessage
Set the JMS selector properties for message object

Overrides:
setProperties in class EventMessage
Throws:
javax.jms.JMSException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.