org.apache.oozie.client.event
Class SLAEvent

java.lang.Object
  extended by org.apache.oozie.client.event.Event
      extended by org.apache.oozie.client.event.SLAEvent

public abstract class SLAEvent
extends Event

A sub-class of the Event interface, related to notification events after SLA mets/misses


Nested Class Summary
static class SLAEvent.EventStatus
           
static class SLAEvent.SLAStatus
           
 
Nested classes/interfaces inherited from class org.apache.oozie.client.event.Event
Event.MessageType
 
Field Summary
 
Fields inherited from class org.apache.oozie.client.event.Event
msgType
 
Constructor Summary
SLAEvent()
           
 
Method Summary
abstract  long getActualDuration()
          Get the actual duration of job for SLA
abstract  Date getActualEnd()
          Get the actual end time of job for SLA
abstract  Date getActualStart()
          Get the actual start time of job for SLA
abstract  String getAlertContact()
          Get the SLA alert-contact
abstract  String getAlertEvents()
          Get the SLA alert-events
abstract  String getAppName()
          Get the app-name of the job generating this event
abstract  AppType getAppType()
          Get the AppType of the event
abstract  SLAEvent.EventStatus getEventStatus()
          Get the SLA event status
abstract  long getExpectedDuration()
          Get the expected duration for this job
abstract  Date getExpectedEnd()
          Get the expected end-time for this job
abstract  Date getExpectedStart()
          Get the expected start-time for this job
abstract  String getId()
          Get the job-id
abstract  String getJobData()
          Get job related data or configuration
abstract  String getJobStatus()
          Get the job status
abstract  Date getLastModifiedTime()
          Get the last modified time
 Event.MessageType getMsgType()
          Get the MessageType of the event
abstract  Date getNominalTime()
          Get the job's nominal time
abstract  String getNotificationMsg()
          Get the sla notification-message
abstract  String getParentId()
          Get the id of the parent job
abstract  String getSlaConfig()
          Get the miscellaneous key-value configs
abstract  SLAEvent.SLAStatus getSLAStatus()
          Get the SLA status
abstract  String getUpstreamApps()
          Get the dependent upstream apps
abstract  String getUser()
          Get the user for this job sla
 String toString()
           
 
Methods inherited from class org.apache.oozie.client.event.Event
setMsgType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SLAEvent

public SLAEvent()
Method Detail

getSLAStatus

public abstract SLAEvent.SLAStatus getSLAStatus()
Get the SLA status

Returns:
SLAEvent.SLAStatus

getEventStatus

public abstract SLAEvent.EventStatus getEventStatus()
Get the SLA event status

Returns:
SLAEvent.EventStatus

getMsgType

public Event.MessageType getMsgType()
Description copied from class: Event
Get the MessageType of the event

Overrides:
getMsgType in class Event
Returns:
MessageType

getId

public abstract String getId()
Get the job-id

Returns:
String job-id

getParentId

public abstract String getParentId()
Get the id of the parent job

Returns:
String parent-id

getAppType

public abstract AppType getAppType()
Get the AppType of the event

Returns:
AppType

getAppName

public abstract String getAppName()
Get the app-name of the job generating this event

Returns:
String app-name

getNominalTime

public abstract Date getNominalTime()
Get the job's nominal time

Returns:
Date nominal time

getExpectedStart

public abstract Date getExpectedStart()
Get the expected start-time for this job

Returns:
Date expected start-time

getExpectedEnd

public abstract Date getExpectedEnd()
Get the expected end-time for this job

Returns:
Date expected end-time

getExpectedDuration

public abstract long getExpectedDuration()
Get the expected duration for this job

Returns:
Date expected duration

getNotificationMsg

public abstract String getNotificationMsg()
Get the sla notification-message

Returns:
String notification-message

getAlertEvents

public abstract String getAlertEvents()
Get the SLA alert-events

Returns:
String alert-events

getAlertContact

public abstract String getAlertContact()
Get the SLA alert-contact

Returns:
String alert-contact

getUpstreamApps

public abstract String getUpstreamApps()
Get the dependent upstream apps

Returns:
String upstream-apps

getJobData

public abstract String getJobData()
Get job related data or configuration

Returns:
String job-data

getUser

public abstract String getUser()
Get the user for this job sla

Returns:
String user

getSlaConfig

public abstract String getSlaConfig()
Get the miscellaneous key-value configs

Returns:
String slaConfig

getActualStart

public abstract Date getActualStart()
Get the actual start time of job for SLA

Returns:
Date actual-start

getActualEnd

public abstract Date getActualEnd()
Get the actual end time of job for SLA

Returns:
Date actual-end

getActualDuration

public abstract long getActualDuration()
Get the actual duration of job for SLA

Returns:
long duration

getJobStatus

public abstract String getJobStatus()
Get the job status

Returns:
String job-status

getLastModifiedTime

public abstract Date getLastModifiedTime()
Get the last modified time

Returns:
Date last modified time

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.