DefaultSolrIndexOperationService.@Deprecated public class DefaultSolrIndexerOperationsService extends Object implements SolrIndexerOperationsService
SolrIndexerOperationsService.| Constructor and Description |
|---|
DefaultSolrIndexerOperationsService()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SolrIndexOperationRecordModel |
createNewRunningIndexOperationForIndexMode(SolrIndexedCoresRecordModel record,
IndexerOperationValues mode)
Deprecated.
Creates new, unsaved instance of
SolrIndexOperationRecordModel for given index mode with status
IndexerOperationStatus.RUNNING. |
SolrIndexOperationRecordModel |
finalizeCurrentlyRunningIndexOperation(SolrIndexedCoresRecordModel solrCoreRecord,
IndexerOperationValues mode,
boolean indexError,
String indexErrorReason)
Deprecated.
On indexer operation finish, use this method to finalize the operation record representation in data base.
|
SolrIndexOperationRecordModel |
getCurrentlyRunningIndexOperation(SolrIndexedCoresRecordModel record,
IndexerOperationValues operationMode)
Deprecated.
Returns currently running index operation for the given SOLR core -
SolrIndexedCoresRecordModel and
indexer operation mode - IndexerOperationValues. |
SolrIndexOperationRecordModel |
getLastIndexOperationByStatus(SolrIndexedCoresRecordModel record,
IndexerOperationStatus status)
Deprecated.
Returns the last index operation for the given SOLR core -
SolrIndexedCoresRecordModel and index operation
status - IndexerOperationStatus. |
void |
purgePreviousOperations(SolrIndexOperationRecordModel targetOperation)
Deprecated.
Removes historical index operation records of the same
SolrIndexedCoresRecordModel as the target operation
and which happened before the target operation. |
void |
setClusterService(ClusterService clusterService)
Deprecated.
|
void |
setModelService(ModelService modelService)
Deprecated.
|
void |
setSolrIndexerOperationsDao(SolrIndexerOperationsDao solrIndexerOperationsDao)
Deprecated.
|
void |
setTimeService(TimeService timeService)
Deprecated.
|
public DefaultSolrIndexerOperationsService()
public SolrIndexOperationRecordModel getCurrentlyRunningIndexOperation(SolrIndexedCoresRecordModel record, IndexerOperationValues operationMode)
SolrIndexerOperationsServiceSolrIndexedCoresRecordModel and
indexer operation mode - IndexerOperationValues.getCurrentlyRunningIndexOperation in interface SolrIndexerOperationsServicerecord - SolrIndexedCoresRecordModeloperationMode - IndexerOperationValuesSolrIndexOperationRecordModelpublic SolrIndexOperationRecordModel getLastIndexOperationByStatus(SolrIndexedCoresRecordModel record, IndexerOperationStatus status)
SolrIndexerOperationsServiceSolrIndexedCoresRecordModel and index operation
status - IndexerOperationStatus.getLastIndexOperationByStatus in interface SolrIndexerOperationsServicerecord - SolrIndexedCoresRecordModelstatus - IndexerOperationStatusSolrIndexOperationRecordModel with the given status that executed last, or null if no
operation with the given status executed in the past for the given solr core.public SolrIndexOperationRecordModel createNewRunningIndexOperationForIndexMode(SolrIndexedCoresRecordModel record, IndexerOperationValues mode)
SolrIndexerOperationsServiceSolrIndexOperationRecordModel for given index mode with status
IndexerOperationStatus.RUNNING. This instance is aware of the current thread and cluster id.createNewRunningIndexOperationForIndexMode in interface SolrIndexerOperationsServicerecord - SolrIndexedCoresRecordModelmode - IndexerOperationValuesSolrIndexOperationRecordModel - not saved by modelService.public SolrIndexOperationRecordModel finalizeCurrentlyRunningIndexOperation(SolrIndexedCoresRecordModel solrCoreRecord, IndexerOperationValues mode, boolean indexError, String indexErrorReason)
SolrIndexerOperationsServiceIndexerOperationStatus.SUCCESS or IndexerOperationStatus.FAILED according to
indexError parameter.finalizeCurrentlyRunningIndexOperation in interface SolrIndexerOperationsServicesolrCoreRecord - SolrIndexedCoresRecordModelmode - IndexerOperationValuesindexError - true/false.indexErrorReason - string reasonSolrIndexOperationRecordModel - it is not not saved. The caller must save it using
ModelService.save(Object)public void purgePreviousOperations(SolrIndexOperationRecordModel targetOperation)
SolrIndexerOperationsServiceSolrIndexedCoresRecordModel as the target operation
and which happened before the target operation.purgePreviousOperations in interface SolrIndexerOperationsServicetargetOperation - SolrIndexOperationRecordModelpublic void setModelService(ModelService modelService)
public void setTimeService(TimeService timeService)
public void setClusterService(ClusterService clusterService)
public void setSolrIndexerOperationsDao(SolrIndexerOperationsDao solrIndexerOperationsDao)
Copyright © 2017 SAP SE. All Rights Reserved.