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

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

public class SLAMessage
extends EventMessage


Constructor Summary
SLAMessage()
           
SLAMessage(SLAEvent.EventStatus eventStatus, SLAEvent.SLAStatus slaStatus, AppType appType, String appName, String user, String jobId, String parentJobId, Date nominalTime, Date expectedStartTime, Date actualStartTime, Date expectedEndTime, Date actualEndTime, long expectedDuration, long actualDuration, String notificationMessage, String upstreamApps)
           
 
Method Summary
 long getActualDuration()
          Get actual duration (in milliseconds)
 Date getActualEndTime()
          Get actual end time
 Date getActualStartTime()
          Get actual start time
 String getAppName()
          Get application name
 SLAEvent.EventStatus getEventStatus()
          Get event status
 long getExpectedDuration()
          Get expected duration time (in milliseconds)
 Date getExpectedEndTime()
          Get expected end time
 Date getExpectedStartTime()
          Get expected start time
 String getId()
          Get the job Id
 Date getNominalTime()
          Get nominal time
 String getNotificationMessage()
          Get notification message
 String getParentId()
          Gets the parent job id
 SLAEvent.SLAStatus getSLAStatus()
          Get SLA status
 String getUpstreamApps()
          Get upstream app names
 String getUser()
          Get user name
 void setActualDuration(long actualDuration)
          Set actual duration (in milliseconds) for message
 void setActualEndTime(Date actualEndTime)
          Set actual end time for message
 void setActualStartTime(Date actualStartTime)
          Set actual start time for message
 void setAppName(String appName)
          Set application name for message
 void setEventStatus(SLAEvent.EventStatus eventStatus)
          Set event status
 void setExpectedDuration(long expectedDuration)
          Set expected duration (in milliseconds) for message
 void setExpectedEndTime(Date expectedEndTime)
          Set expected end time for message
 void setExpectedStartTime(Date expectedStartTime)
          Set expected start time for message
 void setId(String id)
          Set the job Id for message
 void setNominalTime(Date nominalTime)
          Set nominal time for message
 void setNotificationMessage(String notificationMessage)
          Set notification message
 void setParentId(String parentId)
          Set the parent job Id for message
 void setProperties(javax.jms.Message message)
          Set the JMS properties for SLA message
 void setSLAStatus(SLAEvent.SLAStatus slaStatus)
          Set SLA status for message
 void setUpstreamApps(String upstreamApps)
          Set upstream app names
 void setUser(String user)
          Set user name for message
 
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

SLAMessage

public SLAMessage()

SLAMessage

public SLAMessage(SLAEvent.EventStatus eventStatus,
                  SLAEvent.SLAStatus slaStatus,
                  AppType appType,
                  String appName,
                  String user,
                  String jobId,
                  String parentJobId,
                  Date nominalTime,
                  Date expectedStartTime,
                  Date actualStartTime,
                  Date expectedEndTime,
                  Date actualEndTime,
                  long expectedDuration,
                  long actualDuration,
                  String notificationMessage,
                  String upstreamApps)
Method Detail

getId

public String getId()
Get the job Id

Returns:
id the job id

setId

public void setId(String id)
Set the job Id for message

Parameters:
id - the job id

getParentId

public String getParentId()
Gets the parent job id

Returns:
the parent job Id

setParentId

public void setParentId(String parentId)
Set the parent job Id for message

Parameters:
parentId - the parent job Id

getNominalTime

public Date getNominalTime()
Get nominal time

Returns:
nominal time

setNominalTime

public void setNominalTime(Date nominalTime)
Set nominal time for message

Parameters:
nominalTime -

getExpectedStartTime

public Date getExpectedStartTime()
Get expected start time

Returns:
the expected start time

setExpectedStartTime

public void setExpectedStartTime(Date expectedStartTime)
Set expected start time for message

Parameters:
expectedStartTime -

getActualStartTime

public Date getActualStartTime()
Get actual start time

Returns:
actual start time

setActualStartTime

public void setActualStartTime(Date actualStartTime)
Set actual start time for message

Parameters:
actualStartTime -

getExpectedEndTime

public Date getExpectedEndTime()
Get expected end time

Returns:
expectedEndTime

setExpectedEndTime

public void setExpectedEndTime(Date expectedEndTime)
Set expected end time for message

Parameters:
expectedEndTime -

getActualEndTime

public Date getActualEndTime()
Get actual end time

Returns:
actual end time

setActualEndTime

public void setActualEndTime(Date actualEndTime)
Set actual end time for message

Parameters:
actualEndTime -

getExpectedDuration

public long getExpectedDuration()
Get expected duration time (in milliseconds)

Returns:
expectedDuration (in milliseconds)

setExpectedDuration

public void setExpectedDuration(long expectedDuration)
Set expected duration (in milliseconds) for message

Parameters:
expectedDuration - (in milliseconds)

getActualDuration

public long getActualDuration()
Get actual duration (in milliseconds)

Returns:
actual duration (in milliseconds)

setActualDuration

public void setActualDuration(long actualDuration)
Set actual duration (in milliseconds) for message

Parameters:
actualDuration - (in milliseconds)

getNotificationMessage

public String getNotificationMessage()
Get notification message

Returns:
notification message

setNotificationMessage

public void setNotificationMessage(String notificationMessage)
Set notification message

Parameters:
notificationMessage -

getUpstreamApps

public String getUpstreamApps()
Get upstream app names

Returns:
upstreamApps

setUpstreamApps

public void setUpstreamApps(String upstreamApps)
Set upstream app names

Parameters:
upstreamApps -

getUser

public String getUser()
Get user name

Returns:
user name

setUser

public void setUser(String user)
Set user name for message

Parameters:
user -

getAppName

public String getAppName()
Get application name

Returns:
application name

setAppName

public void setAppName(String appName)
Set application name for message

Parameters:
appName -

getEventStatus

public SLAEvent.EventStatus getEventStatus()
Get event status

Returns:
event status

setEventStatus

public void setEventStatus(SLAEvent.EventStatus eventStatus)
Set event status

Parameters:
eventStatus -

getSLAStatus

public SLAEvent.SLAStatus getSLAStatus()
Get SLA status

Returns:
sla status

setSLAStatus

public void setSLAStatus(SLAEvent.SLAStatus slaStatus)
Set SLA status for message

Parameters:
slaStatus -

setProperties

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

Overrides:
setProperties in class EventMessage
Parameters:
message - the JMS message
Throws:
javax.jms.JMSException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.