Class StoppableIndexingThread

  • All Implemented Interfaces:
    Runnable

    public class StoppableIndexingThread
    extends Thread
    • Field Detail

      • id

        protected final String id
      • deleteFails

        protected Set<String> deleteFails
      • doDeletes

        protected boolean doDeletes
    • Constructor Detail

      • 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 Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • safeStop

        public void safeStop()
      • getAddFails

        public Set<String> getAddFails()
      • getDeleteFails

        public Set<String> getDeleteFails()
      • getFailCount

        public int getFailCount()
      • addFields

        protected void addFields​(org.apache.solr.common.SolrInputDocument doc,
                                 Object... fields)
      • indexDocs

        protected void indexDocs​(List<org.apache.solr.common.SolrInputDocument> docs)
                          throws IOException,
                                 org.apache.solr.client.solrj.SolrServerException
        Throws:
        IOException
        org.apache.solr.client.solrj.SolrServerException
      • getNumDeletes

        public int getNumDeletes()
      • getNumAdds

        public int getNumAdds()