Package org.apache.solr.cloud
Class StoppableIndexingThread
java.lang.Object
java.lang.Thread
org.apache.solr.cloud.StoppableIndexingThread
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionStoppableIndexingThread(org.apache.solr.client.solrj.SolrClient controlClient, org.apache.solr.client.solrj.SolrClient cloudClient, String id, boolean doDeletes) StoppableIndexingThread(org.apache.solr.client.solrj.SolrClient controlClient, org.apache.solr.client.solrj.SolrClient cloudClient, String id, boolean doDeletes, int numCycles, int batchSize, boolean pauseBetweenUpdates) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
id
-
deletes
-
addFails
-
deleteFails
-
doDeletes
protected boolean doDeletes
-
-
Constructor Details
-
StoppableIndexingThread
public StoppableIndexingThread(org.apache.solr.client.solrj.SolrClient controlClient, org.apache.solr.client.solrj.SolrClient cloudClient, String id, boolean doDeletes) -
StoppableIndexingThread
public StoppableIndexingThread(org.apache.solr.client.solrj.SolrClient controlClient, org.apache.solr.client.solrj.SolrClient cloudClient, String id, boolean doDeletes, int numCycles, int batchSize, boolean pauseBetweenUpdates)
-
-
Method Details
-
run
public void run() -
safeStop
public void safeStop() -
getAddFails
-
getDeleteFails
-
getFailCount
public int getFailCount() -
addFields
-
indexDocs
protected void indexDocs(List<org.apache.solr.common.SolrInputDocument> docs) throws IOException, org.apache.solr.client.solrj.SolrServerException - Throws:
IOExceptionorg.apache.solr.client.solrj.SolrServerException
-
getNumDeletes
public int getNumDeletes() -
getNumAdds
public int getNumAdds()
-