Class ProductBatchIndexRequestHandler
- java.lang.Object
-
- com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
- com.broadleafcommerce.search.index.catalog.messaging.handler.ProductBatchIndexRequestHandler
-
public class ProductBatchIndexRequestHandler extends com.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
Listens for aBatchIndexRequest
message and launches a reindex. Leverages simple processing via theReindexDelegationService.reindex(List)
api.- Author:
- Jeff Fischer
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]
supportedSimpleTypeNames
-
Constructor Summary
Constructors Constructor Description ProductBatchIndexRequestHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.service.ReindexService reindexService, CatalogService catalogService, int chunkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CatalogService
getCatalogService()
protected int
getChunkSize()
protected com.broadleafcommerce.search.index.core.service.ReindexDelegationService
getReindexDelegationService()
protected com.broadleafcommerce.search.index.core.service.ReindexService
getReindexService()
String[]
getSupportedSimpleTypeNames()
void
hook(String batchIndexRequest)
void
processBatchIndexRequest(com.fasterxml.jackson.databind.JsonNode batchIndexRequest)
-
-
-
Field Detail
-
supportedSimpleTypeNames
protected static final String[] supportedSimpleTypeNames
-
-
Constructor Detail
-
ProductBatchIndexRequestHandler
public ProductBatchIndexRequestHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.search.index.core.service.ReindexDelegationService reindexDelegationService, com.broadleafcommerce.search.index.core.service.ReindexService reindexService, CatalogService catalogService, int chunkSize)
-
-
Method Detail
-
hook
@StreamListener("batchIndexRequestInputProduct") public void hook(String batchIndexRequest)
- Specified by:
hook
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
processBatchIndexRequest
public void processBatchIndexRequest(com.fasterxml.jackson.databind.JsonNode batchIndexRequest)
- Specified by:
processBatchIndexRequest
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
getSupportedSimpleTypeNames
public String[] getSupportedSimpleTypeNames()
- Specified by:
getSupportedSimpleTypeNames
in classcom.broadleafcommerce.search.index.common.messaging.handler.AbstractBatchIndexRequestHandler
-
getReindexDelegationService
protected com.broadleafcommerce.search.index.core.service.ReindexDelegationService getReindexDelegationService()
-
getCatalogService
protected CatalogService getCatalogService()
-
getReindexService
protected com.broadleafcommerce.search.index.core.service.ReindexService getReindexService()
-
getChunkSize
protected int getChunkSize()
-
-