public class QueueIndexingService extends Object implements IndexingService
| Constructor and Description |
|---|
QueueIndexingService(IndexingOperationDAO indexingOperationDAO) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearIndexingQueue()
Clear the indexQueue
|
void |
clearQueue()
Delete all the operations of the indexing queue
|
void |
clearQueue(String entityType)
Delete all the operations of the indexing queue for a given entity type
|
void |
deleteAllOperations() |
void |
deleteOperation(IndexingOperation indexingOperation) |
Long |
getNumberOperations()
get the number of operations in indexQueue
|
IndexingOperation |
getOperation(String operationId) |
List<IndexingOperation> |
getOperations(int offset,
int limit) |
void |
index(String connectorName,
String id)
Add a create operation to the indexing queue
|
void |
init(String connectorName)
Add a init operation to the indexing queue to init the index
|
void |
reindex(String connectorName,
String id)
Add a update operation to the indexing queue
|
void |
reindexAll(String connectorName)
Add a reindex all operation to the indexing queue
|
void |
unindex(String connectorName,
String id)
Add a delete operation to the indexing queue
|
void |
unindexAll(String connectorName)
Add a delete all type operation to the indexing queue
|
public QueueIndexingService(IndexingOperationDAO indexingOperationDAO)
public void init(String connectorName)
IndexingServiceinit in interface IndexingServiceconnectorName - Name of the connectorpublic void index(String connectorName, String id)
IndexingServiceindex in interface IndexingServiceconnectorName - Name of the connectorid - id of the documentpublic void reindex(String connectorName, String id)
IndexingServicereindex in interface IndexingServiceconnectorName - Name of the connectorid - id of the documentpublic void unindex(String connectorName, String id)
IndexingServiceunindex in interface IndexingServiceconnectorName - Name of the connectorid - id of the documentpublic void reindexAll(String connectorName)
IndexingServicereindexAll in interface IndexingServiceconnectorName - Name of the connectorpublic void unindexAll(String connectorName)
IndexingServiceunindexAll in interface IndexingServiceconnectorName - Name of the connectorpublic void clearQueue()
IndexingServiceclearQueue in interface IndexingServicepublic void clearQueue(String entityType)
IndexingServiceclearQueue in interface IndexingServiceentityType - Entity typepublic void clearIndexingQueue()
public Long getNumberOperations()
public List<IndexingOperation> getOperations(int offset, int limit)
public IndexingOperation getOperation(String operationId)
public void deleteAllOperations()
public void deleteOperation(IndexingOperation indexingOperation)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.