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, shutdownNow
private 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 ConcurrentUpdateSolrClient
public void onSuccess(org.apache.http.HttpResponse resp)
onSuccess
in class ConcurrentUpdateSolrClient
private void _checkCollectionInUse(String collection) throws SolrServerException
SolrServerException
public UpdateResponse add(String collection, Collection<SolrInputDocument> docs) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(Collection<SolrInputDocument> docs) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(String collection, Collection<SolrInputDocument> docs, int commitWithinMs) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(Collection<SolrInputDocument> docs, int commitWithinMs) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(String collection, SolrInputDocument doc) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(SolrInputDocument doc) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(String collection, SolrInputDocument doc, int commitWithinMs) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(SolrInputDocument doc, int commitWithinMs) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(String collection, Iterator<SolrInputDocument> docIterator) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse add(Iterator<SolrInputDocument> docIterator) throws SolrServerException, IOException
add
in class SolrClient
SolrServerException
IOException
public UpdateResponse addBean(String collection, Object obj) throws IOException, SolrServerException
addBean
in class SolrClient
IOException
SolrServerException
public UpdateResponse addBean(Object obj) throws IOException, SolrServerException
addBean
in class SolrClient
IOException
SolrServerException
public UpdateResponse addBean(String collection, Object obj, int commitWithinMs) throws IOException, SolrServerException
addBean
in class SolrClient
IOException
SolrServerException
public UpdateResponse addBean(Object obj, int commitWithinMs) throws IOException, SolrServerException
addBean
in class SolrClient
IOException
SolrServerException
public UpdateResponse addBeans(String collection, Collection<?> beans) throws SolrServerException, IOException
addBeans
in class SolrClient
SolrServerException
IOException
public UpdateResponse addBeans(Collection<?> beans) throws SolrServerException, IOException
addBeans
in class SolrClient
SolrServerException
IOException
public UpdateResponse addBeans(String collection, Collection<?> beans, int commitWithinMs) throws SolrServerException, IOException
addBeans
in class SolrClient
SolrServerException
IOException
public UpdateResponse addBeans(Collection<?> beans, int commitWithinMs) throws SolrServerException, IOException
addBeans
in class SolrClient
SolrServerException
IOException
public UpdateResponse addBeans(String collection, Iterator<?> beanIterator) throws SolrServerException, IOException
addBeans
in class SolrClient
SolrServerException
IOException
public UpdateResponse addBeans(Iterator<?> beanIterator) throws SolrServerException, IOException
addBeans
in class SolrClient
SolrServerException
IOException
public UpdateResponse commit(String collection) throws SolrServerException, IOException
commit
in class SolrClient
SolrServerException
IOException
public UpdateResponse commit() throws SolrServerException, IOException
commit
in class SolrClient
SolrServerException
IOException
public UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
commit
in class SolrClient
SolrServerException
IOException
public UpdateResponse commit(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
commit
in class SolrClient
SolrServerException
IOException
public UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit) throws SolrServerException, IOException
commit
in class SolrClient
SolrServerException
IOException
public UpdateResponse commit(boolean waitFlush, boolean waitSearcher, boolean softCommit) throws SolrServerException, IOException
commit
in class SolrClient
SolrServerException
IOException
public UpdateResponse optimize(String collection) throws SolrServerException, IOException
optimize
in class SolrClient
SolrServerException
IOException
public UpdateResponse optimize() throws SolrServerException, IOException
optimize
in class SolrClient
SolrServerException
IOException
public UpdateResponse optimize(String collection, boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
optimize
in class SolrClient
SolrServerException
IOException
public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher) throws SolrServerException, IOException
optimize
in class SolrClient
SolrServerException
IOException
public UpdateResponse optimize(String collection, boolean waitFlush, boolean waitSearcher, int maxSegments) throws SolrServerException, IOException
optimize
in class SolrClient
SolrServerException
IOException
public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, int maxSegments) throws SolrServerException, IOException
optimize
in class SolrClient
SolrServerException
IOException
public UpdateResponse rollback(String collection) throws SolrServerException, IOException
rollback
in class SolrClient
SolrServerException
IOException
public UpdateResponse rollback() throws SolrServerException, IOException
rollback
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(String collection, String id) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(String id) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(String collection, String id, int commitWithinMs) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(String id, int commitWithinMs) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(String collection, List<String> ids) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(List<String> ids) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(String collection, List<String> ids, int commitWithinMs) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteById(List<String> ids, int commitWithinMs) throws SolrServerException, IOException
deleteById
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteByQuery(String collection, String query) throws SolrServerException, IOException
deleteByQuery
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteByQuery(String query) throws SolrServerException, IOException
deleteByQuery
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteByQuery(String collection, String query, int commitWithinMs) throws SolrServerException, IOException
deleteByQuery
in class SolrClient
SolrServerException
IOException
public UpdateResponse deleteByQuery(String query, int commitWithinMs) throws SolrServerException, IOException
deleteByQuery
in class SolrClient
SolrServerException
IOException