public class ManagedDocumentIndexService extends java.lang.Object implements DocumentIndexService
Indexing errors are handled asynchronously as ManagedSolrDocumentIndexService.IndexError events. On index write (update or rebuild) failure the service stops processing write requests.
The business-logic (like rebuild scheduling and index recovery) is implemented on higher levels.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUpdateDone() |
org.apache.solr.client.solrj.response.QueryResponse |
query(org.apache.solr.client.solrj.SolrQuery solrQuery) |
java.util.concurrent.Future |
rebuild()
Creates and starts new index-rebuild-thread if there is no already running one.
|
void |
shutdown() |
void |
update(IndexUpdateOp request)
Updates index asynchronously.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrebuildIfEmptypublic org.apache.solr.client.solrj.response.QueryResponse query(org.apache.solr.client.solrj.SolrQuery solrQuery)
query in interface DocumentIndexServicepublic void update(IndexUpdateOp request)
DocumentIndexServiceupdate in interface DocumentIndexServicerequest - index update request.public java.util.concurrent.Future rebuild()
An existing index-update-thread is stopped before rebuilding happens and a new index-update-thread is started immediately after running index-rebuild-thread is terminated without errors.
rebuild in interface DocumentIndexServicepublic void shutdown()
shutdown in interface DocumentIndexServicepublic boolean isUpdateDone()
isUpdateDone in interface DocumentIndexService