org.apache.hadoop.hive.hwi
Class HWIContextListener
java.lang.Object
org.apache.hadoop.hive.hwi.HWIContextListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class HWIContextListener
- extends Object
- implements javax.servlet.ServletContextListener
After getting a contextInitialized event this component starts an instance of
the HiveSessionManager.
Field Summary |
protected static org.apache.commons.logging.Log |
l4j
|
Method Summary |
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
When the Hive Web Interface is closing we locate the Runnable
HiveSessionManager and set it's internal goOn variable to false. |
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
The Hive Web Interface manages multiple hive sessions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
l4j
protected static final org.apache.commons.logging.Log l4j
HWIContextListener
public HWIContextListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- The Hive Web Interface manages multiple hive sessions. This event is used
to start a Runnable, HiveSessionManager as a thread inside the servlet
container.
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
- Parameters:
sce
- An event fired by the servlet context on startup
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- When the Hive Web Interface is closing we locate the Runnable
HiveSessionManager and set it's internal goOn variable to false. This
should allow the application to gracefully shutdown.
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
- Parameters:
sce
- An event fired by the servlet context on context shutdown
Copyright © 2012 The Apache Software Foundation