Package org.apache.solr.servlet
Class CoreContainerProvider
- java.lang.Object
-
- org.apache.solr.servlet.CoreContainerProvider
-
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class CoreContainerProvider extends Object implements javax.servlet.ServletContextListener
A service that can provide access to solr cores. This allows us to have multiple filters and servlets that depend on SolrCore and CoreContainer, while still only having one CoreContainer per instance of solr.
-
-
Constructor Summary
Constructors Constructor Description CoreContainerProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent sce)
protected CoreContainer
createCoreContainer(Path solrHome, Properties nodeProps)
CoreContainer initializationRateLimitManager
getRateLimitManager()
void
init(javax.servlet.ServletContext servletContext)
static org.apache.solr.servlet.CoreContainerProvider.ServiceHolder
serviceForContext(javax.servlet.ServletContext ctx)
-
-
-
Method Detail
-
serviceForContext
public static org.apache.solr.servlet.CoreContainerProvider.ServiceHolder serviceForContext(javax.servlet.ServletContext ctx) throws InterruptedException
- Throws:
InterruptedException
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
close
public void close()
-
init
public void init(javax.servlet.ServletContext servletContext)
-
createCoreContainer
protected CoreContainer createCoreContainer(Path solrHome, Properties nodeProps)
CoreContainer initialization- Returns:
- a CoreContainer to hold this server's cores
-
getRateLimitManager
public RateLimitManager getRateLimitManager()
-
-