Class IndexerOperationListener
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.listeners.IndexerOperationListener
-
- All Implemented Interfaces:
ExtendedIndexerListener,IndexerListener
public class IndexerOperationListener extends java.lang.Object implements ExtendedIndexerListener
Responsible for creating and maintaining of IndexData and Index core/collection.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_QUALIFIERstatic java.lang.StringFLIP_QUALIFIERstatic java.lang.StringFLOP_QUALIFIER
-
Constructor Summary
Constructors Constructor Description IndexerOperationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.voidafterPrepareContext(IndexerContext context)The implementation of this method will be invoked after the context preparation.voidbeforeIndex(IndexerContext context)Handles a notification that the indexing for a particularIndexerContextis about to begin.SolrIndexOperationServicegetSolrIndexOperationService()SolrIndexServicegetSolrIndexService()SolrSearchProviderFactorygetSolrSearchProviderFactory()protected java.lang.StringresolveStagedQualifier(Index index)voidsetSolrIndexOperationService(SolrIndexOperationService solrIndexOperationService)voidsetSolrIndexService(SolrIndexService solrIndexService)voidsetSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
-
-
-
Field Detail
-
DEFAULT_QUALIFIER
public static final java.lang.String DEFAULT_QUALIFIER
- See Also:
- Constant Field Values
-
FLIP_QUALIFIER
public static final java.lang.String FLIP_QUALIFIER
- See Also:
- Constant Field Values
-
FLOP_QUALIFIER
public static final java.lang.String FLOP_QUALIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterPrepareContext
public void afterPrepareContext(IndexerContext context) throws IndexerException
Description copied from interface:ExtendedIndexerListenerThe implementation of this method will be invoked after the context preparation.- Specified by:
afterPrepareContextin interfaceExtendedIndexerListener- Parameters:
context- - TheIndexerContext- Throws:
IndexerException
-
beforeIndex
public void beforeIndex(IndexerContext context) throws IndexerException
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
public void afterIndex(IndexerContext context) throws IndexerException
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
public void afterIndexError(IndexerContext context) throws IndexerException
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
-
resolveStagedQualifier
protected java.lang.String resolveStagedQualifier(Index index)
-
getSolrIndexOperationService
public SolrIndexOperationService getSolrIndexOperationService()
-
setSolrIndexOperationService
public void setSolrIndexOperationService(SolrIndexOperationService solrIndexOperationService)
-
getSolrIndexService
public SolrIndexService getSolrIndexService()
-
setSolrIndexService
public void setSolrIndexService(SolrIndexService solrIndexService)
-
getSolrSearchProviderFactory
public SolrSearchProviderFactory getSolrSearchProviderFactory()
-
setSolrSearchProviderFactory
public void setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
-
-