org.apache.oozie.event.messaging
Class MessageFactory

java.lang.Object
  extended by org.apache.oozie.event.messaging.MessageFactory

public class MessageFactory
extends Object

Factory for constructing messages and retrieving the serializer


Field Summary
static String OOZIE_MESSAGE_FORMAT
           
static String OOZIE_MESSAGE_SERIALIZE
           
 
Constructor Summary
MessageFactory()
           
 
Method Summary
static org.apache.oozie.client.event.message.CoordinatorActionMessage createCoordinatorActionMessage(CoordinatorActionEvent coordActionEvent)
          Constructs and returns the coordinator action message for coordinator action event
static org.apache.oozie.client.event.message.SLAMessage createSLAMessage(org.apache.oozie.client.event.SLAEvent event)
          Constructs and returns SLA notification message
static org.apache.oozie.client.event.message.WorkflowJobMessage createWorkflowJobMessage(WorkflowJobEvent wfJobEvent)
          Constructs and returns the workflow job message for workflow job event
static MessageSerializer getMessageSerializer()
          Gets the configured serializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OOZIE_MESSAGE_FORMAT

public static final String OOZIE_MESSAGE_FORMAT

OOZIE_MESSAGE_SERIALIZE

public static final String OOZIE_MESSAGE_SERIALIZE
See Also:
Constant Field Values
Constructor Detail

MessageFactory

public MessageFactory()
Method Detail

getMessageSerializer

public static MessageSerializer getMessageSerializer()
Gets the configured serializer

Returns:

createWorkflowJobMessage

public static org.apache.oozie.client.event.message.WorkflowJobMessage createWorkflowJobMessage(WorkflowJobEvent wfJobEvent)
Constructs and returns the workflow job message for workflow job event

Parameters:
wfJobEvent - the workflow job event
Returns:

createCoordinatorActionMessage

public static org.apache.oozie.client.event.message.CoordinatorActionMessage createCoordinatorActionMessage(CoordinatorActionEvent coordActionEvent)
Constructs and returns the coordinator action message for coordinator action event

Parameters:
coordActionEvent - the coordinator action event
Returns:

createSLAMessage

public static org.apache.oozie.client.event.message.SLAMessage createSLAMessage(org.apache.oozie.client.event.SLAEvent event)
Constructs and returns SLA notification message

Parameters:
event - SLA event
Returns:


Copyright © 2013 Apache Software Foundation. All Rights Reserved.