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

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

public abstract class EventMessage
extends Object

Base class which holds attributes for event message


Constructor Summary
  EventMessage()
          Default constructor for constructing event
protected EventMessage(Event.MessageType messageType, AppType appType)
          Constructs the event message using message type and app type
 
Method Summary
 AppType getAppType()
          Returns the appType for a event
 Event.MessageType getMessageType()
          Returns the message type for a event
 void setAppType(AppType appType)
          Sets the appType for a event
 void setMessageType(Event.MessageType messageType)
          Sets the message type for a event
 void setProperties(javax.jms.Message message)
          Set the JMS selector properties for message object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventMessage

public EventMessage()
Default constructor for constructing event


EventMessage

protected EventMessage(Event.MessageType messageType,
                       AppType appType)
Constructs the event message using message type and app type

Parameters:
messageType - the message type
appType - the app type
Method Detail

setAppType

public void setAppType(AppType appType)
Sets the appType for a event

Parameters:
appType -

getAppType

public AppType getAppType()
Returns the appType for a event

Returns:
the AppType

setMessageType

public void setMessageType(Event.MessageType messageType)
Sets the message type for a event

Parameters:
messageType -

getMessageType

public Event.MessageType getMessageType()
Returns the message type for a event

Returns:
the MessageType

setProperties

public void setProperties(javax.jms.Message message)
                   throws javax.jms.JMSException
Set the JMS selector properties for message object

Parameters:
message -
Throws:
javax.jms.JMSException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.