Class SessionInitializationListener
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.listeners.SessionInitializationListener
- All Implemented Interfaces:
IndexerBatchListener,IndexerListener,IndexerQueryListener
public class SessionInitializationListener
extends Object
implements IndexerQueryListener, IndexerListener, IndexerBatchListener
Listener that initializes the session.
-
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.voidafterQuery(IndexerQueryContext queryContext) Handles a notification that an indexer query has just completed.voidafterQueryError(IndexerQueryContext queryContext) Handles a notification that an indexer query failed (this may also be due to listeners failing).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.voidbeforeQuery(IndexerQueryContext queryContext) Handles a notification that an indexer query is about to begin execution.protected voidinitializeSession(FacetSearchConfig facetSearchConfig, IndexedType indexedType) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetI18nService(I18NService i18nService) voidsetUserService(UserService userService)
-
Constructor Details
-
SessionInitializationListener
public SessionInitializationListener()
-
-
Method Details
-
getUserService
-
setUserService
-
setI18nService
-
getI18nService
-
getCatalogVersionService
-
setCatalogVersionService
-
beforeQuery
Description copied from interface:IndexerQueryListenerHandles a notification that an indexer query is about to begin execution.- Specified by:
beforeQueryin interfaceIndexerQueryListener- Parameters:
queryContext- - theIndexerQueryContext- Throws:
IndexerException- if an error occurs
-
afterQuery
Description copied from interface:IndexerQueryListenerHandles a notification that an indexer query has just completed.- Specified by:
afterQueryin interfaceIndexerQueryListener- Parameters:
queryContext- - theIndexerQueryContext- Throws:
IndexerException- if an error occurs
-
afterQueryError
Description copied from interface:IndexerQueryListenerHandles a notification that an indexer query failed (this may also be due to listeners failing).- Specified by:
afterQueryErrorin interfaceIndexerQueryListener- Parameters:
queryContext- - theIndexerQueryContext- Throws:
IndexerException- if an error occurs
-
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
-
initializeSession
-