Class SessionInitializationListener
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.listeners.SessionInitializationListener
-
- All Implemented Interfaces:
IndexerBatchListener,IndexerListener,IndexerQueryListener
public class SessionInitializationListener extends java.lang.Object implements IndexerQueryListener, IndexerListener, IndexerBatchListener
Listener that initializes the session.
-
-
Constructor Summary
Constructors Constructor Description SessionInitializationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterBatch(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.CatalogVersionServicegetCatalogVersionService()I18NServicegetI18nService()UserServicegetUserService()protected voidinitializeSession(FacetSearchConfig facetSearchConfig, IndexedType indexedType)voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetI18nService(I18NService i18nService)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
getUserService
public UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
setI18nService
public void setI18nService(I18NService i18nService)
-
getI18nService
public I18NService getI18nService()
-
getCatalogVersionService
public CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
beforeQuery
public void beforeQuery(IndexerQueryContext queryContext) throws IndexerException
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
public void afterQuery(IndexerQueryContext queryContext) throws IndexerException
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
public void afterQueryError(IndexerQueryContext queryContext) throws IndexerException
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
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
-
beforeBatch
public void beforeBatch(IndexerBatchContext batchContext) throws IndexerException
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
public void afterBatch(IndexerBatchContext batchContext) throws IndexerException
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
public void afterBatchError(IndexerBatchContext batchContext) throws IndexerException
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
protected void initializeSession(FacetSearchConfig facetSearchConfig, IndexedType indexedType)
-
-