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. |
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)
- Description copied from class:
AsyncEventListener
- Should implement the actual event handling.
- Specified by:
process
in class AsyncEventListener<QueryEnded>
- Parameters:
event
- the event
sendMail
public static void sendMail(String host,
String port,
QueryEndNotifier.Email email,
int mailSmtpTimeout,
int mailSmtpConnectionTimeout)
- Send mail.
- Parameters:
host
- the hostport
- the portemail
- the emailmailSmtpTimeout
- the mail smtp timeoutmailSmtpConnectionTimeout
- the mail smtp connection timeout
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.