net.myrrix.web
Class InitListener

java.lang.Object
  extended by net.myrrix.web.InitListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public final class InitListener
extends Object
implements javax.servlet.ServletContextListener

This servlet lifecycle listener makes sure that the shared MyrrixRecommender instance is initialized at startup, along with related objects, and shut down when the container is destroyed.

Author:
Sean Owen

Field Summary
static String ALL_PARTITIONS_SPEC_KEY
           
static String BUCKET_KEY
           
static String INSTANCE_ID_KEY
           
static String LOCAL_INPUT_DIR_KEY
           
static String LOG_HANDLER
           
static String PARTITION_KEY
           
static String RESCORER_PROVIDER_CLASS_KEY
           
 
Constructor Summary
InitListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_HANDLER

public static final String LOG_HANDLER

LOCAL_INPUT_DIR_KEY

public static final String LOCAL_INPUT_DIR_KEY

BUCKET_KEY

public static final String BUCKET_KEY

INSTANCE_ID_KEY

public static final String INSTANCE_ID_KEY

RESCORER_PROVIDER_CLASS_KEY

public static final String RESCORER_PROVIDER_CLASS_KEY

ALL_PARTITIONS_SPEC_KEY

public static final String ALL_PARTITIONS_SPEC_KEY

PARTITION_KEY

public static final String PARTITION_KEY
Constructor Detail

InitListener

public InitListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2012. All Rights Reserved.