org.apache.hadoop.hive.hwi
Class HWIContextListener

java.lang.Object
  extended by 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
           
 
Constructor Summary
HWIContextListener()
           
 
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
 

Field Detail

l4j

protected static final org.apache.commons.logging.Log l4j
Constructor Detail

HWIContextListener

public HWIContextListener()
Method Detail

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 © 2011 The Apache Software Foundation