Uses of Class
org.broadleafcommerce.core.search.service.solr.indexer.ReindexStateHolder
Packages that use ReindexStateHolder
-
Uses of ReindexStateHolder in org.broadleafcommerce.core.search.service.solr.indexer
Methods in org.broadleafcommerce.core.search.service.solr.indexer that return ReindexStateHolderModifier and TypeMethodDescriptionstatic ReindexStateHolderReindexStateHolder.getInstance(String collectionName) Returns a shared instance of this class or null.static ReindexStateHolderReindexStateHolder.getInstance(String collectionName, boolean incrementalCommits, boolean createIfAbsent) Creates or returns a shared instance of this class associated with the collectionName.Methods in org.broadleafcommerce.core.search.service.solr.indexer with parameters of type ReindexStateHolderModifier and TypeMethodDescriptionprotected voidCatalogSolrIndexUpdateCommandHandlerImpl.afterBackgroundThread(ReindexStateHolder holder, org.broadleafcommerce.common.site.domain.Catalog catalog, org.broadleafcommerce.common.site.domain.Site site, org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) This executes after to the main execution of the background (page) thread(s).protected voidCatalogSolrIndexUpdateCommandHandlerImpl.afterPage(List<Long> productIds, List<Product> products, List<org.broadleafcommerce.common.locale.domain.Locale> locales, List<IndexField> fields, ReindexStateHolder holder) This executes immediately after a page is processed.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.afterProcess(ReindexStateHolder holder) Hook point at that is executed at the end of the reindex process.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.afterReadIdBatch(ReindexStateHolder holder, Long catalogId, int batchSize, Long lastId) This executes immediately after reading a batch of product IDs for processing in a background thread.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.afterReadProducts(ReindexStateHolder holder, List<Long> productIds) This executes immediately after reading a batch of products.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.beforeBackgroundThread(ReindexStateHolder holder, org.broadleafcommerce.common.site.domain.Catalog catalog, org.broadleafcommerce.common.site.domain.Site site, org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) The reindex process, specifically page processing, is executed in background threads.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.beforePage(List<Long> productIds, List<Product> products, List<org.broadleafcommerce.common.locale.domain.Locale> locales, List<IndexField> fields, ReindexStateHolder holder) This is executed immediately before a page is processed.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.beforeProcess(ReindexStateHolder holder) Hook point that is executed at the beginning of the reindex process.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.beforeReadIdBatch(ReindexStateHolder holder, Long catalogId, int batchSize, Long lastId) This executes immediately prior to reading a batch of product IDs for processing in a background thread.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.beforeReadProducts(ReindexStateHolder holder, List<Long> productIds) This executes immediately prior to reading a batch of products.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.buildIncrementalIndex(List<Long> productIds, List<Product> products, ReindexStateHolder holder, org.broadleafcommerce.common.site.domain.Catalog catalog, org.broadleafcommerce.common.site.domain.Site site) Builds an incremental or batch portion of the index.protected List<org.apache.solr.common.SolrInputDocument>CatalogSolrIndexUpdateCommandHandlerImpl.buildPage(List<Long> productIds, List<Product> products, List<org.broadleafcommerce.common.locale.domain.Locale> locales, List<IndexField> fields, ReindexStateHolder holder) Given the arguments, this builds a list ofSolrInputDocuments.protected org.broadleafcommerce.common.util.EntityManagerAwareRunnableCatalogSolrIndexUpdateCommandHandlerImpl.createBackgroundRunnable(ReindexStateHolder holder, List<Long> ids, Semaphore sem, Long catalogId, Long siteId, org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) This is where most of the heavy lifting happens.CatalogSolrIndexUpdateCommandHandlerImpl.getIncrementalIndexOperation(ReindexStateHolder holder, org.broadleafcommerce.common.site.domain.Catalog catalog, org.broadleafcommerce.common.site.domain.Site site, List<Long> ids) Returns anIdentityOperationwho may be executed in the context of aCatalogand/orSiteto read products by IDs, and then build the index incrementally.CatalogSolrIndexUpdateCommandHandlerImpl.getReadIdsOperation(ReindexStateHolder holder, Long catalogId, Long siteId, Integer batchSize, Long lastId) Provides anIdentityOperation(function that runs in the context of a Site and/or Catalog) to read batches of IDs.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.incrementalCommit(ReindexStateHolder holder) Issues incremental commits.protected booleanCatalogSolrIndexUpdateCommandHandlerImpl.isReindexSuccessful(ReindexStateHolder holder) Method to determine whether a full reindex was successful.protected voidCatalogSolrIndexUpdateCommandHandlerImpl.populateIndex(ReindexStateHolder holder, Long catalogId, Long siteId, org.broadleafcommerce.common.sandbox.domain.SandBox sandbox) This method populates the index.CatalogSolrIndexUpdateCommandHandlerImpl.readIdBatch(ReindexStateHolder holder, Long catalogId, int batchSize, Long lastId) Reads a batch ofProductIDs from the DB.CatalogSolrIndexUpdateCommandHandlerImpl.readProductsByIds(ReindexStateHolder holder, List<Long> productIds) Reads a batch of products by IDs.