public class SLAEmailEventListener extends SLAEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
SLAEmailEventListener.EmailField |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BLACKLIST_CACHE_TIMEOUT |
static java.lang.String |
BLACKLIST_FAIL_COUNT |
static java.lang.String |
EMAIL_BODY_FIELD_INDENT |
static java.lang.String |
EMAIL_BODY_FIELD_SEPARATER |
static java.lang.String |
EMAIL_BODY_HEADER_SEPARATER |
static java.lang.String |
OOZIE_BASE_URL |
static java.lang.String |
SMTP_CONNECTION_TIMEOUT |
static java.lang.String |
SMTP_TIMEOUT |
| Constructor and Description |
|---|
SLAEmailEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlackList(java.lang.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 java.lang.String SMTP_CONNECTION_TIMEOUT
public static final java.lang.String SMTP_TIMEOUT
public static final java.lang.String BLACKLIST_CACHE_TIMEOUT
public static final java.lang.String BLACKLIST_FAIL_COUNT
public static final java.lang.String OOZIE_BASE_URL
public static java.lang.String EMAIL_BODY_FIELD_SEPARATER
public static java.lang.String EMAIL_BODY_FIELD_INDENT
public static java.lang.String EMAIL_BODY_HEADER_SEPARATER
public SLAEmailEventListener()
public void init(org.apache.hadoop.conf.Configuration conf) throws java.lang.Exception
SLAEventListenerinit in class SLAEventListenerjava.lang.Exceptionpublic 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(java.lang.String email) throws java.lang.Exception
java.lang.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 © 2018 Apache Software Foundation. All Rights Reserved.