Class DefaultIndexerWorker
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.workers.impl.DefaultIndexerWorker
-
- All Implemented Interfaces:
IndexerWorker
,java.lang.Runnable
public class DefaultIndexerWorker extends java.lang.Object implements IndexerWorker
Default implementation ofIndexerWorker
.
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexerWorker()
-
Method Summary
-
-
-
Method Detail
-
getSessionService
public SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getUserService
public UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCommonI18NService
public CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
getFacetSearchConfigService
public FacetSearchConfigService getFacetSearchConfigService()
-
setFacetSearchConfigService
public void setFacetSearchConfigService(FacetSearchConfigService facetSearchConfigService)
-
getIndexerBatchStrategyFactory
public IndexerBatchStrategyFactory getIndexerBatchStrategyFactory()
-
setIndexerBatchStrategyFactory
public void setIndexerBatchStrategyFactory(IndexerBatchStrategyFactory indexerBatchStrategyFactory)
-
getSolrSearchProviderFactory
public SolrSearchProviderFactory getSolrSearchProviderFactory()
-
setSolrSearchProviderFactory
public void setSolrSearchProviderFactory(SolrSearchProviderFactory solrSearchProviderFactory)
-
initialize
public void initialize(IndexerWorkerParameters workerParameters)
Description copied from interface:IndexerWorker
Initializes the worker.- Specified by:
initialize
in interfaceIndexerWorker
- Parameters:
workerParameters
- the worker parameters
-
isInitialized
public boolean isInitialized()
Description copied from interface:IndexerWorker
Indicates if the worker is initialized and ready to run.- Specified by:
isInitialized
in interfaceIndexerWorker
- Returns:
true
if the worker is initialized,false
otherwise
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
doRun
protected void doRun() throws IndexerException, FacetConfigServiceException, SolrServiceException, java.lang.InterruptedException
- Throws:
IndexerException
FacetConfigServiceException
SolrServiceException
java.lang.InterruptedException
-
initializeSession
protected void initializeSession()
-
destroySession
protected void destroySession()
-
registerNonSuspendableThread
protected void registerNonSuspendableThread() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getTaskName
protected java.lang.String getTaskName()
-
logWorkerStart
protected void logWorkerStart()
-
logWorkerSuccess
protected void logWorkerSuccess()
-
logWorkerError
protected void logWorkerError(java.lang.Exception exception)
-
logWorkerInterrupted
protected void logWorkerInterrupted()
-
-