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

java.lang.Object
  extended by org.apache.oozie.client.event.message.EventMessage
      extended by org.apache.oozie.client.event.message.JobMessage
          extended by org.apache.oozie.client.event.message.WorkflowJobMessage

public class WorkflowJobMessage
extends JobMessage

Class holding attributes related to a workflow job message


Constructor Summary
WorkflowJobMessage()
          Default constructor
WorkflowJobMessage(JobEvent.EventStatus eventStatus, String workflowJobId, String coordinatorActionId, Date startTime, Date endTime, WorkflowJob.Status status, String user, String appName, String errorCode, String errorMessage)
          Constructor for a workflow job message
 
Method Summary
 String getErrorCode()
          Get the workflow error code
 String getErrorMessage()
          Get the error message
 WorkflowJob.Status getStatus()
          Get the workflow job status
 void setErrorCode(String errorCode)
          Set the workflow error code
 void setErrorMessage(String errorMessage)
          Set the workflow error message
 void setStatus(WorkflowJob.Status status)
          Set the workflow job status
 
Methods inherited from class org.apache.oozie.client.event.message.JobMessage
getAppName, getEndTime, getEventStatus, getId, getMessageProperties, getParentId, getStartTime, getUser, setAppName, setEndTime, setEventStatus, setId, setParentId, setProperties, setStartTime, setUser
 
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

WorkflowJobMessage

public WorkflowJobMessage()
Default constructor


WorkflowJobMessage

public WorkflowJobMessage(JobEvent.EventStatus eventStatus,
                          String workflowJobId,
                          String coordinatorActionId,
                          Date startTime,
                          Date endTime,
                          WorkflowJob.Status status,
                          String user,
                          String appName,
                          String errorCode,
                          String errorMessage)
Constructor for a workflow job message

Parameters:
eventStatus - event status
workflowJobId - the workflow job id
coordinatorActionId - the parent coordinator action id
startTime - start time of workflow
endTime - end time of workflow
status - status of workflow
user - the user
appName - appName of workflow
errorCode - errorCode of the failed wf actions
errorMessage - errorMessage of the failed wf action
Method Detail

setStatus

public void setStatus(WorkflowJob.Status status)
Set the workflow job status

Parameters:
status -

getStatus

public WorkflowJob.Status getStatus()
Get the workflow job status

Returns:
the workflow status

setErrorCode

public void setErrorCode(String errorCode)
Set the workflow error code

Parameters:
errorCode -

getErrorCode

public String getErrorCode()
Get the workflow error code

Returns:
the error code

setErrorMessage

public void setErrorMessage(String errorMessage)
Set the workflow error message

Parameters:
errorMessage -

getErrorMessage

public String getErrorMessage()
Get the error message

Returns:
the error message


Copyright © 2013 Apache Software Foundation. All Rights Reserved.