Class CommitModeListener
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.listeners.CommitModeListener
- All Implemented Interfaces:
IndexerBatchListener,IndexerListener
Listener that applies the commit mode.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterBatch(IndexerBatchContext batchContext) Handles a notification that the processing for a particularIndexerBatchContexthas just been completed.voidafterBatchError(IndexerBatchContext batchContext) Handles a notification that the processing for a particularIndexerBatchContextfailed.voidafterIndex(IndexerContext context) Handles a notification that the indexing for a particularIndexerContexthas just been completed.voidafterIndexError(IndexerContext context) Handles a notification that the indexing for a particularIndexerContextfailed.voidbeforeBatch(IndexerBatchContext batchContext) Handles a notification that the processing for a particularIndexerBatchContextis about to begin.voidbeforeIndex(IndexerContext context) Handles a notification that the indexing for a particularIndexerContextis about to begin.protected voidcommit(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index, SolrSearchProvider.CommitType commitType) protected CommitModeresolveCommitMode(FacetSearchConfig facetSearchConfig, Map<String, String> indexerHints) voidsetSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
-
Field Details
-
DEFAULT_COMMIT_MODE
-
COMMIT_MODE_HINT
- See Also:
-
-
Constructor Details
-
CommitModeListener
public CommitModeListener()
-
-
Method Details
-
beforeIndex
Description copied from interface:IndexerListenerHandles a notification that the indexing for a particularIndexerContextis about to begin.- Specified by:
beforeIndexin interfaceIndexerListener- Parameters:
context- - theIndexerContext- Throws:
IndexerException- if an error occurs
-
afterIndex
Description copied from interface:IndexerListenerHandles a notification that the indexing for a particularIndexerContexthas just been completed.- Specified by:
afterIndexin interfaceIndexerListener- Parameters:
context- - theIndexerContext- Throws:
IndexerException- if an error occurs
-
afterIndexError
Description copied from interface:IndexerListenerHandles a notification that the indexing for a particularIndexerContextfailed.- Specified by:
afterIndexErrorin interfaceIndexerListener- Parameters:
context- - theIndexerContext- Throws:
IndexerException- if an error occurs
-
beforeBatch
Description copied from interface:IndexerBatchListenerHandles a notification that the processing for a particularIndexerBatchContextis about to begin.- Specified by:
beforeBatchin interfaceIndexerBatchListener- Parameters:
batchContext- - theIndexerBatchContext- Throws:
IndexerException- if an error occurs
-
afterBatch
Description copied from interface:IndexerBatchListenerHandles a notification that the processing for a particularIndexerBatchContexthas just been completed.- Specified by:
afterBatchin interfaceIndexerBatchListener- Parameters:
batchContext- - theIndexerBatchContext- Throws:
IndexerException- if an error occurs
-
afterBatchError
Description copied from interface:IndexerBatchListenerHandles a notification that the processing for a particularIndexerBatchContextfailed.- Specified by:
afterBatchErrorin interfaceIndexerBatchListener- Parameters:
batchContext- - theIndexerBatchContext- Throws:
IndexerException- if an error occurs
-
resolveCommitMode
protected CommitMode resolveCommitMode(FacetSearchConfig facetSearchConfig, Map<String, String> indexerHints) -
commit
protected void commit(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index, SolrSearchProvider.CommitType commitType) throws IndexerException - Throws:
IndexerException
-
setSolrSearchProviderFactory
-
getSolrSearchProviderFactory
-