SolrIndexOperationService.@Deprecated public interface SolrIndexerOperationsService
| 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 indexOperationMode,
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 opareationMode)
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. |
SolrIndexOperationRecordModel getCurrentlyRunningIndexOperation(SolrIndexedCoresRecordModel record, IndexerOperationValues opareationMode)
SolrIndexedCoresRecordModel and
indexer operation mode - IndexerOperationValues.record - SolrIndexedCoresRecordModelopareationMode - IndexerOperationValuesSolrIndexOperationRecordModelNoCurrentlyRunningIndexOperationFoundExceptionSolrIndexOperationRecordModel getLastIndexOperationByStatus(SolrIndexedCoresRecordModel record, IndexerOperationStatus status)
SolrIndexedCoresRecordModel and index operation
status - IndexerOperationStatus.record - 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.SolrIndexOperationRecordModel createNewRunningIndexOperationForIndexMode(SolrIndexedCoresRecordModel record, IndexerOperationValues mode)
SolrIndexOperationRecordModel for given index mode with status
IndexerOperationStatus.RUNNING. This instance is aware of the current thread and cluster id.record - SolrIndexedCoresRecordModelmode - IndexerOperationValuesSolrIndexOperationRecordModel - not saved by modelService.SolrIndexOperationRecordModel finalizeCurrentlyRunningIndexOperation(SolrIndexedCoresRecordModel solrCoreRecord, IndexerOperationValues indexOperationMode, boolean indexError, String indexErrorReason)
IndexerOperationStatus.SUCCESS or IndexerOperationStatus.FAILED according to
indexError parameter.solrCoreRecord - SolrIndexedCoresRecordModelindexOperationMode - IndexerOperationValuesindexError - true/false.indexErrorReason - string reasonSolrIndexOperationRecordModel - it is not not saved. The caller must save it using
ModelService.save(Object)void purgePreviousOperations(SolrIndexOperationRecordModel targetOperation)
SolrIndexedCoresRecordModel as the target operation
and which happened before the target operation.targetOperation - SolrIndexOperationRecordModelCopyright © 2017 SAP SE. All Rights Reserved.