Class SolrExtIndexerJob<T extends SolrExtIndexerCronJobModel>
java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<T>
de.hybris.platform.solrfacetsearch.indexer.cron.SolrExtIndexerJob<T>
- All Implemented Interfaces:
JobPerformable<T>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
public class SolrExtIndexerJob<T extends SolrExtIndexerCronJobModel>
extends AbstractJobPerformable<T>
implements org.springframework.beans.factory.BeanFactoryAware
Job performable that triggers indexer operations. It allows you to have a separate query per
SolrExtIndexerCronJobModel instance. It also allows you to perform partial updates.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
flexibleSearchService, modelService, sessionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateQueryParameters(T cronJob, IndexConfig indexConfig, IndexedType indexedType) protected org.springframework.beans.factory.BeanFactoryThe execution body for aServicelayerJob.protected voidperformIndexing(T cronJob, FacetSearchConfig facetSearchConfig, IndexedType indexedType, List<IndexedProperty> indexedProperties, List<PK> pks, Map<String, String> indexerHints) protected List<IndexedProperty>resolveIndexedProperties(T cronJob, IndexedType indexedType) protected IndexedTyperesolveIndexedType(T cronJob, IndexConfig indexConfig) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetFacetSearchConfigService(FacetSearchConfigService facetSearchConfigService) voidsetIndexerQueriesExecutor(IndexerQueriesExecutor indexerQueriesExecutor) voidsetIndexerService(IndexerService indexerService) protected voidvalidateCronJobParameters(T cronJob) Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
Constructor Details
-
SolrExtIndexerJob
public SolrExtIndexerJob()
-
-
Method Details
-
setFacetSearchConfigService
-
getFacetSearchConfigService
-
setIndexerService
-
getIndexerService
-
setIndexerQueriesExecutor
-
getIndexerQueriesExecutor
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory() -
perform
Description copied from interface:JobPerformableThe execution body for aServicelayerJob. Implement here your execution logic. It can be called synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the execution has reached end and if it was successful.- Specified by:
performin interfaceJobPerformable<T extends SolrExtIndexerCronJobModel>- Specified by:
performin classAbstractJobPerformable<T extends SolrExtIndexerCronJobModel>- Parameters:
cronJob- the related CronJob in whose context the execution will be performed.- Returns:
- a
PerformResultthat indicates whether theexecutionwas successfully executed or not and has finished or not.
-
validateCronJobParameters
- Throws:
IndexerJobException
-
resolveIndexedType
protected IndexedType resolveIndexedType(T cronJob, IndexConfig indexConfig) throws IndexerJobException - Throws:
IndexerJobException
-
resolveIndexedProperties
protected List<IndexedProperty> resolveIndexedProperties(T cronJob, IndexedType indexedType) throws IndexerJobException - Throws:
IndexerJobException
-
createQueryParameters
protected Map<String,Object> createQueryParameters(T cronJob, IndexConfig indexConfig, IndexedType indexedType) throws IndexerJobException - Throws:
IndexerJobException
-
performIndexing
protected void performIndexing(T cronJob, FacetSearchConfig facetSearchConfig, IndexedType indexedType, List<IndexedProperty> indexedProperties, List<PK> pks, Map<String, String> indexerHints) throws IndexerJobException, IndexerException- Throws:
IndexerJobExceptionIndexerException
-