public class DefaultSolrIndexOperationService extends java.lang.Object implements SolrIndexOperationService
SolrIndexOperationService.| Constructor and Description |
|---|
DefaultSolrIndexOperationService() |
| Modifier and Type | Method and Description |
|---|---|
SolrIndexOperationModel |
cancelOperation(long id)
Cancels the index operation.
|
SolrIndexOperationModel |
endOperation(long id,
boolean indexError)
End the index operation with statuses SUCCESS or FAILED depending on the indexError.
|
java.util.Date |
getLastIndexOperationTime(SolrIndexModel index)
Get end time of the last successful FULL or UPDATE indexing operation for the given index.
|
ModelService |
getModelService() |
SolrIndexOperationModel |
getOperationForId(long id)
finds an index operation by id.
|
SolrIndexOperationDao |
getSolrIndexOperationDao() |
TimeService |
getTimeService() |
void |
setModelService(ModelService modelService) |
void |
setSolrIndexOperationDao(SolrIndexOperationDao solrIndexOperationDao) |
void |
setTimeService(TimeService timeService) |
SolrIndexOperationModel |
startOperation(SolrIndexModel index,
long id,
IndexOperation operation,
boolean external)
Starts an index operation.
|
public SolrIndexOperationModel getOperationForId(long id) throws SolrServiceException
SolrIndexOperationServicegetOperationForId in interface SolrIndexOperationServiceid - unique identifierSolrIndexOperationNotFoundException - if the index operation cannot be foundSolrServiceException - if an error occurspublic SolrIndexOperationModel startOperation(SolrIndexModel index, long id, IndexOperation operation, boolean external) throws SolrServiceException
SolrIndexOperationServicestartOperation in interface SolrIndexOperationServiceindex - the indexid - the operation idoperation - the type of operationexternal - indicates if the index operation is externalSolrServiceException - if an error occurspublic SolrIndexOperationModel endOperation(long id, boolean indexError) throws SolrServiceException
SolrIndexOperationServiceendOperation in interface SolrIndexOperationServiceid - unique identifierindexError - true/falseSolrIndexOperationNotFoundException - if the index operation cannot be foundSolrServiceException - if an error occurspublic SolrIndexOperationModel cancelOperation(long id) throws SolrServiceException
SolrIndexOperationServicecancelOperation in interface SolrIndexOperationServiceid - unique identifierSolrIndexOperationNotFoundException - if the index operation cannot be foundSolrServiceException - if an error occurspublic java.util.Date getLastIndexOperationTime(SolrIndexModel index) throws SolrServiceException
SolrIndexOperationServicenew Date(0L) is returned.getLastIndexOperationTime in interface SolrIndexOperationServiceindex - the indexSolrServiceException - if an error occurspublic SolrIndexOperationDao getSolrIndexOperationDao()
public void setSolrIndexOperationDao(SolrIndexOperationDao solrIndexOperationDao)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public TimeService getTimeService()
public void setTimeService(TimeService timeService)
Copyright © 2018 SAP SE. All Rights Reserved.