|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.api.events.AsyncEventListener<QueryEnded> org.apache.lens.server.query.QueryEndNotifier
public class QueryEndNotifier
The Class QueryEndNotifier.
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,
String from,
String to,
String cc,
String subject,
String mailMessage,
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 confMethod Detail |
---|
public void process(QueryEnded event)
AsyncEventListener
process
in class AsyncEventListener<QueryEnded>
event
- the eventpublic static void sendMail(String host, String port, String from, String to, String cc, String subject, String mailMessage, int mailSmtpTimeout, int mailSmtpConnectionTimeout)
host
- the hostport
- the portfrom
- the fromto
- the tocc
- the ccsubject
- the subjectmailMessage
- the mail messagemailSmtpTimeout
- 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 |