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(SLAEvent work)
on SLA job duration limit met
|
void |
onDurationMiss(SLAEvent event)
on SLA job duration limit missed
|
void |
onEndMet(SLAEvent work)
on SLA job end-time limit met
|
void |
onEndMiss(SLAEvent event)
on SLA job end-time limit missed
|
void |
onStartMet(SLAEvent work)
on SLA job start-time limit met
|
void |
onStartMiss(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
SLAEventListener
init
in class SLAEventListener
Exception
public void destroy()
SLAEventListener
destroy
in class SLAEventListener
public void onStartMiss(SLAEvent event)
SLAEventListener
onStartMiss
in class SLAEventListener
public void onEndMiss(SLAEvent event)
SLAEventListener
onEndMiss
in class SLAEventListener
public void onDurationMiss(SLAEvent event)
SLAEventListener
onDurationMiss
in class SLAEventListener
public void addBlackList(String email) throws Exception
Exception
public void onStartMet(SLAEvent work)
SLAEventListener
onStartMet
in class SLAEventListener
public void onEndMet(SLAEvent work)
SLAEventListener
onEndMet
in class SLAEventListener
public void onDurationMet(SLAEvent work)
SLAEventListener
onDurationMet
in class SLAEventListener
Copyright © 2015 Apache Software Foundation. All Rights Reserved.