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