public abstract class AbstractIndexerJob extends AbstractJobPerformable
| Modifier and Type | Field and Description |
|---|---|
protected FacetSearchConfigService |
facetSearchConfigService |
protected Indexer |
indexer |
protected IndexerService |
indexerService |
flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
AbstractIndexerJob() |
| Modifier and Type | Method and Description |
|---|---|
protected FacetSearchConfig |
getFacetSearchConfig(SolrFacetSearchConfigModel facetSearchConfigModel) |
PerformResult |
perform(CronJobModel cronJob)
The execution body for a
ServicelayerJob. |
abstract PerformResult |
performIndexingJob(CronJobModel cronJob) |
void |
setFacetSearchConfigService(FacetSearchConfigService facetSearchConfigService) |
void |
setIndexer(Indexer indexer) |
void |
setIndexerService(IndexerService indexerService) |
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServiceprotected IndexerService indexerService
protected FacetSearchConfigService facetSearchConfigService
protected Indexer indexer
public PerformResult perform(CronJobModel cronJob)
JobPerformableServicelayerJob. 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.perform in interface JobPerformableperform in class AbstractJobPerformablecronJob - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.public abstract PerformResult performIndexingJob(CronJobModel cronJob)
public void setIndexerService(IndexerService indexerService)
indexerService - the indexerService to setpublic void setFacetSearchConfigService(FacetSearchConfigService facetSearchConfigService)
facetSearchConfigService - the facetSearchConfigService to setprotected FacetSearchConfig getFacetSearchConfig(SolrFacetSearchConfigModel facetSearchConfigModel)
facetSearchConfigModel - public void setIndexer(Indexer indexer)
indexer - the indexer to setCopyright © 2017 SAP SE. All Rights Reserved.