|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.server.api.events.AsyncEventListener<QueryEnded>
org.apache.lens.server.query.QueryEndNotifier
public class QueryEndNotifier
The Class QueryEndNotifier.
| Nested Class Summary | |
|---|---|
static class |
QueryEndNotifier.Email
|
| Field Summary | |
|---|---|
static String |
EMAIL_ERROR_COUNTER
The Constant EMAIL_ERROR_COUNTER. |
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
| Fields inherited from interface org.apache.lens.server.api.events.LensEventListener |
|---|
HANDLER_METHOD_NAME |
| Constructor Summary | |
|---|---|
QueryEndNotifier(QueryExecutionServiceImpl queryService,
org.apache.hadoop.hive.conf.HiveConf hiveConf)
Instantiates a new query end notifier. |
|
| Method Summary | |
|---|---|
void |
process(QueryEnded event)
Should implement the actual event handling. |
static void |
sendMail(String host,
String port,
QueryEndNotifier.Email email,
int mailSmtpTimeout,
int mailSmtpConnectionTimeout)
Send mail. |
| Methods inherited from class org.apache.lens.server.api.events.AsyncEventListener |
|---|
getEventQueue, onEvent, stop |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
public static final String EMAIL_ERROR_COUNTER
| Constructor Detail |
|---|
public QueryEndNotifier(QueryExecutionServiceImpl queryService,
org.apache.hadoop.hive.conf.HiveConf hiveConf)
queryService - the query servicehiveConf - the hive conf| Method Detail |
|---|
public void process(QueryEnded event)
AsyncEventListener
process in class AsyncEventListener<QueryEnded>event - the event
public static void sendMail(String host,
String port,
QueryEndNotifier.Email email,
int mailSmtpTimeout,
int mailSmtpConnectionTimeout)
host - the hostport - the portemail - the emailmailSmtpTimeout - the mail smtp timeoutmailSmtpConnectionTimeout - the mail smtp connection timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||