Class SolrCustomerIndexWorker

java.lang.Object
com.broadleafcommerce.search.index.core.worker.AbstractWorker<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>>
com.broadleafcommerce.search.index.customer.solr.worker.SolrCustomerIndexWorker
All Implemented Interfaces:
com.broadleafcommerce.search.index.core.IndexableTypeAware, Runnable

public class SolrCustomerIndexWorker extends com.broadleafcommerce.search.index.core.worker.AbstractWorker<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SolrCustomerIndexWorker(@NonNull com.broadleafcommerce.search.index.core.ProcessStateService processStateService, @NonNull Semaphore semaphore, @NonNull com.broadleafcommerce.search.api.type.IndexableType type, @NonNull com.broadleafcommerce.search.index.core.queue.ReindexQueue<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>> queue, @NonNull com.broadleafcommerce.search.index.customer.service.CustomerService customerService, @NonNull com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> documentBuilder, @NonNull com.broadleafcommerce.search.provider.solr.SolrIndexProvider solrIndexProvider, @NonNull com.broadleafcommerce.search.provider.solr.SolrCollectionResolver collectionResolver, com.broadleafcommerce.common.extension.data.DataRouteSupporting searchSource, long waitTime, int maxTries)
    protected
    SolrCustomerIndexWorker(@NonNull com.broadleafcommerce.search.index.core.ProcessStateService processStateService, @NonNull Semaphore semaphore, @NonNull com.broadleafcommerce.search.api.type.IndexableType type, @NonNull com.broadleafcommerce.search.index.core.queue.ReindexQueue<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>> queue, @NonNull com.broadleafcommerce.search.index.customer.service.CustomerService customerService, @NonNull com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> documentBuilder, @NonNull com.broadleafcommerce.search.provider.solr.SolrIndexProvider solrIndexProvider, @NonNull com.broadleafcommerce.search.provider.solr.SolrCollectionResolver collectionResolver, com.broadleafcommerce.common.extension.data.DataRouteSupporting searchSource, @NonNull com.broadleafcommerce.search.index.solr.worker.SolrIndexWorkerUtil solrIndexWorkerUtil, long waitTime, int maxTries)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
    executeInternal(com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String> queueEntry)
     
    protected int
    executeInternal(com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String> queueEntry, com.broadleafcommerce.search.index.core.ProcessStateHolder processStateHolder)
    Currently unused and points to the original executeInternal(BatchIdHolder<String>, ProcessStateHolder) but can be utilized later to add filtering on a date for a customer index.
    protected com.broadleafcommerce.search.provider.solr.SolrCollectionResolver
     
    protected com.broadleafcommerce.search.index.customer.service.CustomerService
     
    protected com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument>
     
    protected com.broadleafcommerce.search.provider.solr.SolrIndexProvider
     
    protected com.broadleafcommerce.search.index.solr.worker.SolrIndexWorkerUtil
     

    Methods inherited from class com.broadleafcommerce.search.index.core.worker.AbstractWorker

    getIndexableType, getMaxTries, getProcessStateService, getQueue, getSemaphore, getType, getWaitTime, run

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SolrCustomerIndexWorker

      @Deprecated(forRemoval=true, since="2.1.2, 2.0.3") protected SolrCustomerIndexWorker(@NonNull @NonNull com.broadleafcommerce.search.index.core.ProcessStateService processStateService, @NonNull @NonNull Semaphore semaphore, @NonNull @NonNull com.broadleafcommerce.search.api.type.IndexableType type, @NonNull @NonNull com.broadleafcommerce.search.index.core.queue.ReindexQueue<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>> queue, @NonNull @NonNull com.broadleafcommerce.search.index.customer.service.CustomerService customerService, @NonNull @NonNull com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> documentBuilder, @NonNull @NonNull com.broadleafcommerce.search.provider.solr.SolrIndexProvider solrIndexProvider, @NonNull @NonNull com.broadleafcommerce.search.provider.solr.SolrCollectionResolver collectionResolver, com.broadleafcommerce.common.extension.data.DataRouteSupporting searchSource, long waitTime, int maxTries)
    • SolrCustomerIndexWorker

      protected SolrCustomerIndexWorker(@NonNull @NonNull com.broadleafcommerce.search.index.core.ProcessStateService processStateService, @NonNull @NonNull Semaphore semaphore, @NonNull @NonNull com.broadleafcommerce.search.api.type.IndexableType type, @NonNull @NonNull com.broadleafcommerce.search.index.core.queue.ReindexQueue<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>> queue, @NonNull @NonNull com.broadleafcommerce.search.index.customer.service.CustomerService customerService, @NonNull @NonNull com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> documentBuilder, @NonNull @NonNull com.broadleafcommerce.search.provider.solr.SolrIndexProvider solrIndexProvider, @NonNull @NonNull com.broadleafcommerce.search.provider.solr.SolrCollectionResolver collectionResolver, com.broadleafcommerce.common.extension.data.DataRouteSupporting searchSource, @NonNull @NonNull com.broadleafcommerce.search.index.solr.worker.SolrIndexWorkerUtil solrIndexWorkerUtil, long waitTime, int maxTries)
  • Method Details

    • executeInternal

      protected int executeInternal(com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String> queueEntry) throws com.broadleafcommerce.search.api.SearchIndexException
      Specified by:
      executeInternal in class com.broadleafcommerce.search.index.core.worker.AbstractWorker<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>>
      Throws:
      com.broadleafcommerce.search.api.SearchIndexException
    • executeInternal

      protected int executeInternal(com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String> queueEntry, com.broadleafcommerce.search.index.core.ProcessStateHolder processStateHolder) throws com.broadleafcommerce.search.api.SearchIndexException
      Currently unused and points to the original executeInternal(BatchIdHolder<String>, ProcessStateHolder) but can be utilized later to add filtering on a date for a customer index.
      Specified by:
      executeInternal in class com.broadleafcommerce.search.index.core.worker.AbstractWorker<com.broadleafcommerce.search.index.core.queue.BatchIdHolder<String>>
      Throws:
      com.broadleafcommerce.search.api.SearchIndexException
    • getCustomerService

      protected com.broadleafcommerce.search.index.customer.service.CustomerService getCustomerService()
    • getDocumentBuilder

      protected com.broadleafcommerce.search.index.core.document.DocumentBuilder<org.apache.solr.common.SolrInputDocument> getDocumentBuilder()
    • getSolrIndexProvider

      protected com.broadleafcommerce.search.provider.solr.SolrIndexProvider getSolrIndexProvider()
    • getCollectionResolver

      protected com.broadleafcommerce.search.provider.solr.SolrCollectionResolver getCollectionResolver()
    • getSolrIndexWorkerUtil

      protected com.broadleafcommerce.search.index.solr.worker.SolrIndexWorkerUtil getSolrIndexWorkerUtil()