org.apache.solr.core.SolrEventListener Java Examples

The following examples show how to use org.apache.solr.core.SolrEventListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UpdateHandler.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
protected void callPostCommitCallbacks() {
  for (SolrEventListener listener : commitCallbacks) {
    listener.postCommit();
  }
}
 
Example #2
Source File: UpdateHandler.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
protected void callPostSoftCommitCallbacks() {
  for (SolrEventListener listener : softCommitCallbacks) {
    listener.postSoftCommit();
  }
}
 
Example #3
Source File: UpdateHandler.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
protected void callPostOptimizeCallbacks() {
  for (SolrEventListener listener : optimizeCallbacks) {
    listener.postCommit();
  }
}
 
Example #4
Source File: UpdateHandler.java    From lucene-solr with Apache License 2.0 2 votes vote down vote up
/**
 * NOTE: this function is not thread safe.  However, it is safe to call within the
 * <code>inform( SolrCore core )</code> function for <code>SolrCoreAware</code> classes.
 * Outside <code>inform</code>, this could potentially throw a ConcurrentModificationException
 *
 * @see SolrCoreAware
 */
public void registerCommitCallback( SolrEventListener listener )
{
  commitCallbacks.add( listener );
}
 
Example #5
Source File: UpdateHandler.java    From lucene-solr with Apache License 2.0 2 votes vote down vote up
/**
 * NOTE: this function is not thread safe.  However, it is safe to call within the
 * <code>inform( SolrCore core )</code> function for <code>SolrCoreAware</code> classes.
 * Outside <code>inform</code>, this could potentially throw a ConcurrentModificationException
 *
 * @see SolrCoreAware
 */
public void registerSoftCommitCallback( SolrEventListener listener )
{
  softCommitCallbacks.add( listener );
}
 
Example #6
Source File: UpdateHandler.java    From lucene-solr with Apache License 2.0 2 votes vote down vote up
/**
 * NOTE: this function is not thread safe.  However, it is safe to call within the
 * <code>inform( SolrCore core )</code> function for <code>SolrCoreAware</code> classes.
 * Outside <code>inform</code>, this could potentially throw a ConcurrentModificationException
 *
 * @see SolrCoreAware
 */
public void registerOptimizeCallback( SolrEventListener listener )
{
  optimizeCallbacks.add( listener );
}