|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.core.CloseHook
public abstract class CloseHook
Used to request notification when the core is closed.
CallSolrCore.addCloseHook(org.apache.solr.core.CloseHook)
during the SolrCoreAware.inform(SolrCore)
method to
add a close hook to your object.
The close hook can be useful for releasing objects related to the request handler (for instance, if you have a JDBC DataSource or something like that)
Constructor Summary | |
---|---|
CloseHook()
|
Method Summary | |
---|---|
abstract void |
postClose(SolrCore core)
Method called when the given SolrCore object has been shut down and update handlers and searchers are closed Use this method for post-close clean up operations e.g. |
abstract void |
preClose(SolrCore core)
Method called when the given SolrCore object is closing / shutting down but before the update handler and searcher(s) are actually closed Important: Keep the method implementation as short as possible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseHook()
Method Detail |
---|
public abstract void preClose(SolrCore core)
core
- SolrCore object that is shutting down / closingpublic abstract void postClose(SolrCore core)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |