public class SLAEmailEventListener extends SLAEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
SLAEmailEventListener.EmailField |
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
SLAEmailEventListener() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final String SMTP_CONNECTION_TIMEOUT
public static final String SMTP_TIMEOUT
public static final String BLACKLIST_CACHE_TIMEOUT
public static final String BLACKLIST_FAIL_COUNT
public static final String OOZIE_BASE_URL
public static String EMAIL_BODY_FIELD_SEPARATER
public static String EMAIL_BODY_FIELD_INDENT
public static String EMAIL_BODY_HEADER_SEPARATER
public SLAEmailEventListener()
public void init(org.apache.hadoop.conf.Configuration conf) throws Exception
SLAEventListenerinit in class SLAEventListenerExceptionpublic void destroy()
SLAEventListenerdestroy in class SLAEventListenerpublic void onStartMiss(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronStartMiss in class SLAEventListenerpublic void onEndMiss(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronEndMiss in class SLAEventListenerpublic void onDurationMiss(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronDurationMiss in class SLAEventListenerpublic void addBlackList(String email) throws Exception
Exceptionpublic void onStartMet(org.apache.oozie.client.event.SLAEvent work)
SLAEventListeneronStartMet in class SLAEventListenerpublic void onEndMet(org.apache.oozie.client.event.SLAEvent work)
SLAEventListeneronEndMet in class SLAEventListenerpublic void onDurationMet(org.apache.oozie.client.event.SLAEvent work)
SLAEventListeneronDurationMet in class SLAEventListenerCopyright © 2014 Apache Software Foundation. All Rights Reserved.