private static final class RequestHandlers.LazyRequestHandlerWrapper extends java.lang.Object implements SolrRequestHandler, SolrInfoMBean
LazyRequestHandlerWrapper wraps any SolrRequestHandler.
Rather then instanciate and initalize 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.Category| Modifier and Type | Field and Description |
|---|---|
private NamedList |
_args |
private java.lang.String |
_className |
private SolrRequestHandler |
_handler |
private SolrCore |
core |
| Constructor and Description |
|---|
LazyRequestHandlerWrapper(SolrCore core,
java.lang.String className,
NamedList args) |
| Modifier and Type | Method and Description |
|---|---|
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
java.lang.String |
getDescription()
Simple one or two line description
|
java.net.URL[] |
getDocs()
Documentation URL list.
|
java.lang.String |
getHandlerClass() |
java.lang.String |
getName()
Simple common usage name, e.g.
|
java.lang.String |
getSource()
CVS Source, SVN Source, etc
|
java.lang.String |
getSourceId()
CVS Id, SVN Id, etc
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
java.lang.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)
In normal use, this function will not be called
|
private final SolrCore core
private java.lang.String _className
private NamedList _args
private SolrRequestHandler _handler
public void init(NamedList args)
init in interface SolrRequestHandlerpublic void handleRequest(SolrQueryRequest req, SolrQueryResponse rsp)
handleRequest in interface SolrRequestHandlerpublic SolrRequestHandler getWrappedHandler()
public java.lang.String getHandlerClass()
public java.lang.String getName()
SolrInfoMBeangetName in interface SolrInfoMBeanpublic java.lang.String getDescription()
SolrInfoMBeangetDescription in interface SolrInfoMBeanpublic java.lang.String getVersion()
SolrInfoMBeangetVersion in interface SolrInfoMBeanpublic java.lang.String getSourceId()
SolrInfoMBeangetSourceId in interface SolrInfoMBeanpublic java.lang.String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeanpublic java.net.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 SolrInfoMBean