org.apache.oozie.sla.listener
Class SLAEmailEventListener

java.lang.Object
  extended by org.apache.oozie.sla.listener.SLAEventListener
      extended by org.apache.oozie.sla.listener.SLAEmailEventListener

public class SLAEmailEventListener
extends SLAEventListener


Nested Class Summary
static class SLAEmailEventListener.EmailField
           
 
Field Summary
static String BLACKLIST_CACHE_TIMEOUT
           
static String BLACKLIST_FAIL_COUNT
           
static String EMAIL_BODY_FIELD_INDENT
           
static String EMAIL_BODY_FIELD_SEPARATER
           
static String EMAIL_BODY_HEADER_SEPARATER
           
static String OOZIE_BASE_URL
           
static String SMTP_CONNECTION_TIMEOUT
           
static String SMTP_TIMEOUT
           
 
Constructor Summary
SLAEmailEventListener()
           
 
Method Summary
 void addBlackList(String email)
           
 void destroy()
          Destroy the listener
 void init(org.apache.hadoop.conf.Configuration conf)
          Initialize the listener
 void onDurationMet(org.apache.oozie.client.event.SLAEvent work)
          on SLA job duration limit met
 void onDurationMiss(org.apache.oozie.client.event.SLAEvent event)
          on SLA job duration limit missed
 void onEndMet(org.apache.oozie.client.event.SLAEvent work)
          on SLA job end-time limit met
 void onEndMiss(org.apache.oozie.client.event.SLAEvent event)
          on SLA job end-time limit missed
 void onStartMet(org.apache.oozie.client.event.SLAEvent work)
          on SLA job start-time limit met
 void onStartMiss(org.apache.oozie.client.event.SLAEvent event)
          on SLA job start-time limit missed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMTP_CONNECTION_TIMEOUT

public static final String SMTP_CONNECTION_TIMEOUT
See Also:
Constant Field Values

SMTP_TIMEOUT

public static final String SMTP_TIMEOUT
See Also:
Constant Field Values

BLACKLIST_CACHE_TIMEOUT

public static final String BLACKLIST_CACHE_TIMEOUT
See Also:
Constant Field Values

BLACKLIST_FAIL_COUNT

public static final String BLACKLIST_FAIL_COUNT
See Also:
Constant Field Values

OOZIE_BASE_URL

public static final String OOZIE_BASE_URL
See Also:
Constant Field Values

EMAIL_BODY_FIELD_SEPARATER

public static String EMAIL_BODY_FIELD_SEPARATER

EMAIL_BODY_FIELD_INDENT

public static String EMAIL_BODY_FIELD_INDENT

EMAIL_BODY_HEADER_SEPARATER

public static String EMAIL_BODY_HEADER_SEPARATER
Constructor Detail

SLAEmailEventListener

public SLAEmailEventListener()
Method Detail

init

public void init(org.apache.hadoop.conf.Configuration conf)
          throws Exception
Description copied from class: SLAEventListener
Initialize the listener

Specified by:
init in class SLAEventListener
Throws:
Exception

destroy

public void destroy()
Description copied from class: SLAEventListener
Destroy the listener

Specified by:
destroy in class SLAEventListener

onStartMiss

public void onStartMiss(org.apache.oozie.client.event.SLAEvent event)
Description copied from class: SLAEventListener
on SLA job start-time limit missed

Specified by:
onStartMiss in class SLAEventListener

onEndMiss

public void onEndMiss(org.apache.oozie.client.event.SLAEvent event)
Description copied from class: SLAEventListener
on SLA job end-time limit missed

Specified by:
onEndMiss in class SLAEventListener

onDurationMiss

public void onDurationMiss(org.apache.oozie.client.event.SLAEvent event)
Description copied from class: SLAEventListener
on SLA job duration limit missed

Specified by:
onDurationMiss in class SLAEventListener

addBlackList

public void addBlackList(String email)
                  throws Exception
Throws:
Exception

onStartMet

public void onStartMet(org.apache.oozie.client.event.SLAEvent work)
Description copied from class: SLAEventListener
on SLA job start-time limit met

Specified by:
onStartMet in class SLAEventListener

onEndMet

public void onEndMet(org.apache.oozie.client.event.SLAEvent work)
Description copied from class: SLAEventListener
on SLA job end-time limit met

Specified by:
onEndMet in class SLAEventListener

onDurationMet

public void onDurationMet(org.apache.oozie.client.event.SLAEvent work)
Description copied from class: SLAEventListener
on SLA job duration limit met

Specified by:
onDurationMet in class SLAEventListener


Copyright © 2013 Apache Software Foundation. All Rights Reserved.