public class MessageFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OOZIE_MESSAGE_FORMAT |
static String |
OOZIE_MESSAGE_SERIALIZE |
| Constructor and Description |
|---|
MessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final String OOZIE_MESSAGE_FORMAT
public static final String OOZIE_MESSAGE_SERIALIZE
public MessageFactory()
public static MessageSerializer getMessageSerializer()
public static org.apache.oozie.client.event.message.WorkflowJobMessage createWorkflowJobMessage(WorkflowJobEvent wfJobEvent)
wfJobEvent - the workflow job eventpublic static org.apache.oozie.client.event.message.CoordinatorActionMessage createCoordinatorActionMessage(CoordinatorActionEvent coordActionEvent)
coordActionEvent - the coordinator action eventpublic static org.apache.oozie.client.event.message.SLAMessage createSLAMessage(org.apache.oozie.client.event.SLAEvent event)
event - SLA eventCopyright © 2014 Apache Software Foundation. All Rights Reserved.