public static class RequestHandlers.LazyRequestHandlerWrapper extends Object implements SolrRequestHandler, AutoCloseable, PluginInfoInitialized
LazyRequestHandlerWrapper wraps any SolrRequestHandler.
Rather then instantiate and initialize the handler on startup, this wrapper waits
until it is actually called. This should only be used for handlers that are
unlikely to be used in the normal lifecycle.
You can enable lazy loading in solrconfig.xml using:
<requestHandler name="..." class="..." startup="lazy">
...
</requestHandler>
This is a private class - if there is a real need for it to be public, it could
moveSolrInfoMBean.CategoryTYPE| Constructor and Description |
|---|
RequestHandlers.LazyRequestHandlerWrapper(SolrCore core) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected SolrRequestHandler |
createRequestHandler() |
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
String |
getDescription()
Simple one or two line description
|
URL[] |
getDocs()
Documentation URL list.
|
String |
getHandlerClass() |
String |
getName()
Simple common usage name, e.g.
|
String |
getSource()
CVS Source, SVN Source, etc
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
String |
getVersion()
Simple common usage version, e.g.
|
SolrRequestHandler |
getWrappedHandler() |
void |
handleRequest(SolrQueryRequest req,
SolrQueryResponse rsp)
Wait for the first request before initializing the wrapped handler
|
void |
init(NamedList args)
init will be called just once, immediately after creation. |
void |
init(PluginInfo info) |
public RequestHandlers.LazyRequestHandlerWrapper(SolrCore core)
public void init(NamedList args)
SolrRequestHandlerinit will be called just once, immediately after creation.
The args are user-level initialization parameters that may be specified when declaring a request handler in solrconfig.xml
init in interface SolrRequestHandlerpublic void handleRequest(SolrQueryRequest req, SolrQueryResponse rsp)
handleRequest in interface SolrRequestHandlerpublic SolrRequestHandler getWrappedHandler()
protected SolrRequestHandler createRequestHandler()
public String getHandlerClass()
public String getName()
SolrInfoMBeangetName in interface SolrInfoMBeanpublic String getDescription()
SolrInfoMBeangetDescription in interface SolrInfoMBeanpublic String getVersion()
SolrInfoMBeangetVersion in interface SolrInfoMBeanpublic String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeanpublic URL[] getDocs()
SolrInfoMBeanSuggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs in interface SolrInfoMBeanpublic SolrInfoMBean.Category getCategory()
SolrInfoMBeangetCategory in interface SolrInfoMBeanpublic NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString() representation will be used.
getStatistics in interface SolrInfoMBeanpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic void init(PluginInfo info)
init in interface PluginInfoInitializedCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.