Class AbstractSnIndexerBatchStrategy
- java.lang.Object
-
- de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerBatchStrategy
-
- All Implemented Interfaces:
SnIndexerBatchStrategy
- Direct Known Subclasses:
DefaultSnIndexerBatchStrategy
public abstract class AbstractSnIndexerBatchStrategy extends java.lang.Object implements SnIndexerBatchStrategy
Base class forSnIndexerBatchStrategyimplementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractSnIndexerBatchStrategy()
-
Method Summary
-
-
-
Method Detail
-
execute
public SnIndexerBatchResponse execute(SnIndexerBatchRequest indexerBatchRequest) throws SnIndexerException, java.lang.InterruptedException
Description copied from interface:SnIndexerBatchStrategyExecutes the indexer request.- Specified by:
executein interfaceSnIndexerBatchStrategy- Returns:
- the indexer batch response
- Throws:
SnIndexerException- if an error occursjava.lang.InterruptedException
-
executeBeforeIndexBatchListeners
protected void executeBeforeIndexBatchListeners(SnIndexerContext indexerContext, java.util.List<SnIndexerBatchListener> listeners) throws SnException
- Throws:
SnException
-
executeAfterIndexBatchListeners
protected void executeAfterIndexBatchListeners(SnIndexerContext indexerContext, java.util.List<SnIndexerBatchListener> listeners) throws SnException
- Throws:
SnException
-
executeAfterIndexBatchErrorListeners
protected void executeAfterIndexBatchErrorListeners(SnIndexerContext indexerContext, java.util.List<SnIndexerBatchListener> listeners)
-
doExecute
protected abstract SnIndexerBatchResponse doExecute(SnIndexerContext indexerContext, java.lang.String indexerBatchId) throws SnException, java.lang.InterruptedException
- Throws:
SnExceptionjava.lang.InterruptedException
-
createIndexerBatchResponse
protected SnIndexerBatchResponse createIndexerBatchResponse(SnIndexerContext indexerContext, java.lang.Integer totalItems, java.lang.Integer processedItems, SnIndexerOperationStatus status)
-
getSnSessionService
public SnSessionService getSnSessionService()
-
setSnSessionService
public void setSnSessionService(SnSessionService snSessionService)
-
getSnIndexerContextFactory
public SnIndexerContextFactory getSnIndexerContextFactory()
-
setSnIndexerContextFactory
public void setSnIndexerContextFactory(SnIndexerContextFactory snIndexerContextFactory)
-
getSnListenerFactory
public SnListenerFactory getSnListenerFactory()
-
setSnListenerFactory
public void setSnListenerFactory(SnListenerFactory snListenerFactory)
-
-