|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.core.RequestHandlers.LazyRequestHandlerWrapper
public static final class RequestHandlers.LazyRequestHandlerWrapper
The 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 move
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean |
---|
SolrInfoMBean.Category |
Constructor Summary | |
---|---|
RequestHandlers.LazyRequestHandlerWrapper(SolrCore core,
String className,
NamedList args)
|
Method Summary | |
---|---|
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)
In normal use, this function will not be called |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestHandlers.LazyRequestHandlerWrapper(SolrCore core, String className, NamedList args)
Method Detail |
---|
public void init(NamedList args)
init
in interface SolrRequestHandler
public void handleRequest(SolrQueryRequest req, SolrQueryResponse rsp)
handleRequest
in interface SolrRequestHandler
public SolrRequestHandler getWrappedHandler()
public String getHandlerClass()
public String getName()
SolrInfoMBean
getName
in interface SolrInfoMBean
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
public String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
public URL[] getDocs()
SolrInfoMBean
Suggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs
in interface SolrInfoMBean
public SolrInfoMBean.Category getCategory()
SolrInfoMBean
getCategory
in interface SolrInfoMBean
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |