org.apache.lens.server.query
Class QueryEndNotifier
java.lang.Object
org.apache.lens.server.api.events.AsyncEventListener<QueryEnded>
org.apache.lens.server.query.QueryEndNotifier
- All Implemented Interfaces:
- LensEventListener<QueryEnded>
public class QueryEndNotifier
- extends AsyncEventListener<QueryEnded>
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
- The Constant LOG.
EMAIL_ERROR_COUNTER
public static final String EMAIL_ERROR_COUNTER
- The Constant EMAIL_ERROR_COUNTER.
- See Also:
- Constant Field Values
QueryEndNotifier
public QueryEndNotifier(QueryExecutionServiceImpl queryService,
org.apache.hadoop.hive.conf.HiveConf hiveConf)
- Instantiates a new query end notifier.
- Parameters:
queryService - the query servicehiveConf - the hive conf
process
public void process(QueryEnded event)
- Specified by:
process in class AsyncEventListener<QueryEnded>
sendMail
public static void sendMail(String host,
String port,
String from,
String to,
String cc,
String subject,
String mailMessage,
int mailSmtpTimeout,
int mailSmtpConnectionTimeout)
- Send mail.
- Parameters:
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
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.