public abstract class CloseHook extends Object
SolrCore.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 and Description |
---|
CloseHook() |
Modifier and Type | Method and Description |
---|---|
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. |
public abstract void preClose(SolrCore core)
core
- SolrCore object that is shutting down / closingpublic abstract void postClose(SolrCore core)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.