public abstract class AbstractAmetysConcurrentUpdateClient extends ConcurrentUpdateSolrClient
ConcurrentUpdateSolrClient.Builder| Modifier and Type | Field and Description |
|---|---|
private String |
_collectionName
Name of the collection, on which operation are allowed
|
private Logger |
_logger |
| Constructor and Description |
|---|
AbstractAmetysConcurrentUpdateClient(String solrServerUrl,
String collectionName,
int queueSize,
int threadCount,
Logger logger)
Constructor
|
blockUntilFinished, close, getQueryParams, request, setConnectionTimeout, setParser, setPollQueueTime, setQueryParams, setRequestWriter, setSoTimeout, shutdownNowprivate String _collectionName
public AbstractAmetysConcurrentUpdateClient(String solrServerUrl, String collectionName, int queueSize, int threadCount, Logger logger)
solrServerUrl - The Solr server URLcollectionName - The name of the collection, on which operations will be allowed. Operations on other collections will be forbidden.queueSize - The buffer size before the documents are sent to the serverthreadCount - The number of background threads used to empty the queuelogger - internal loggerpublic void handleError(Throwable t)
handleError in class ConcurrentUpdateSolrClientpublic void onSuccess(org.apache.http.HttpResponse resp)
onSuccess in class ConcurrentUpdateSolrClientprivate void _checkCollectionInUse(String collection) throws SolrServerException
SolrServerExceptionpublic UpdateResponse add(String collection, Collection<SolrInputDocument> docs) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(Collection<SolrInputDocument> docs) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(String collection, Collection<SolrInputDocument> docs, int commitWithinMs) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(Collection<SolrInputDocument> docs, int commitWithinMs) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(String collection, SolrInputDocument doc) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(SolrInputDocument doc) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(String collection, SolrInputDocument doc, int commitWithinMs) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(SolrInputDocument doc, int commitWithinMs) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(String collection, Iterator<SolrInputDocument> docIterator) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse add(Iterator<SolrInputDocument> docIterator) throws SolrServerException, IOException
add in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse addBean(String collection, Object obj) throws IOException, SolrServerException
addBean in class SolrClientIOExceptionSolrServerExceptionpublic UpdateResponse addBean(Object obj) throws IOException, SolrServerException
addBean in class SolrClientIOExceptionSolrServerExceptionpublic UpdateResponse addBean(String collection, Object obj, int commitWithinMs) throws IOException, SolrServerException
addBean in class SolrClientIOExceptionSolrServerExceptionpublic UpdateResponse addBean(Object obj, int commitWithinMs) throws IOException, SolrServerException
addBean in class SolrClientIOExceptionSolrServerExceptionpublic UpdateResponse addBeans(String collection, Collection<?> beans) throws SolrServerException, IOException
addBeans in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse addBeans(Collection<?> beans) throws SolrServerException, IOException
addBeans in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse addBeans(String collection, Collection<?> beans, int commitWithinMs) throws SolrServerException, IOException
addBeans in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse addBeans(Collection<?> beans, int commitWithinMs) throws SolrServerException, IOException
addBeans in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse addBeans(String collection, Iterator<?> beanIterator) throws SolrServerException, IOException
addBeans in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse addBeans(Iterator<?> beanIterator) throws SolrServerException, IOException
addBeans in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse commit(String collection) throws SolrServerException, IOException
commit in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse commit() throws SolrServerException, IOException
commit in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
commit in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse commit(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
commit in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit) throws SolrServerException, IOException
commit in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse commit(boolean waitFlush, boolean waitSearcher, boolean softCommit) throws SolrServerException, IOException
commit in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse optimize(String collection) throws SolrServerException, IOException
optimize in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse optimize() throws SolrServerException, IOException
optimize in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse optimize(String collection, boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
optimize in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
optimize in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse optimize(String collection, boolean waitFlush, boolean waitSearcher, int maxSegments) throws SolrServerException, IOException
optimize in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, int maxSegments) throws SolrServerException, IOException
optimize in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse rollback(String collection) throws SolrServerException, IOException
rollback in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse rollback() throws SolrServerException, IOException
rollback in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(String collection, String id) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(String id) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(String collection, String id, int commitWithinMs) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(String id, int commitWithinMs) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(String collection, List<String> ids) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(List<String> ids) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(String collection, List<String> ids, int commitWithinMs) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteById(List<String> ids, int commitWithinMs) throws SolrServerException, IOException
deleteById in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteByQuery(String collection, String query) throws SolrServerException, IOException
deleteByQuery in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteByQuery(String query) throws SolrServerException, IOException
deleteByQuery in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteByQuery(String collection, String query, int commitWithinMs) throws SolrServerException, IOException
deleteByQuery in class SolrClientSolrServerExceptionIOExceptionpublic UpdateResponse deleteByQuery(String query, int commitWithinMs) throws SolrServerException, IOException
deleteByQuery in class SolrClientSolrServerExceptionIOException