Class QueueIndexingService
- java.lang.Object
-
- org.exoplatform.commons.search.index.impl.QueueIndexingService
-
- All Implemented Interfaces:
IndexingService
public class QueueIndexingService extends Object implements IndexingService
Created by The eXo Platform SAS Author : Thibault Clement tclement@exoplatform.com 7/22/15
-
-
Constructor Summary
Constructors Constructor Description QueueIndexingService(IndexingOperationDAO indexingOperationDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearIndexingQueue()Clear the indexQueuevoiddeleteAllOperations()voiddeleteOperation(IndexingOperation indexingOperation)longgetNumberOperations()get the number of operations in indexQueueIndexingOperationgetOperation(String operationId)List<IndexingOperation>getOperations(int offset, int limit)voidindex(String connectorName, String id)Add a create operation to the indexing queuevoidinit(String connectorName)Add a init operation to the indexing queue to init the indexvoidreindex(String connectorName, String id)Add a update operation to the indexing queuevoidunindex(String connectorName, String id)Add a delete operation to the indexing queue
-
-
-
Constructor Detail
-
QueueIndexingService
public QueueIndexingService(IndexingOperationDAO indexingOperationDAO)
-
-
Method Detail
-
init
public void init(String connectorName)
Description copied from interface:IndexingServiceAdd a init operation to the indexing queue to init the index- Specified by:
initin interfaceIndexingService- Parameters:
connectorName- Name of the connector
-
index
public void index(String connectorName, String id)
Description copied from interface:IndexingServiceAdd a create operation to the indexing queue- Specified by:
indexin interfaceIndexingService- Parameters:
connectorName- Name of the connectorid- id of the document
-
reindex
public void reindex(String connectorName, String id)
Description copied from interface:IndexingServiceAdd a update operation to the indexing queue- Specified by:
reindexin interfaceIndexingService- Parameters:
connectorName- Name of the connectorid- id of the document
-
unindex
public void unindex(String connectorName, String id)
Description copied from interface:IndexingServiceAdd a delete operation to the indexing queue- Specified by:
unindexin interfaceIndexingService- Parameters:
connectorName- Name of the connectorid- id of the document
-
clearIndexingQueue
public void clearIndexingQueue()
Clear the indexQueue- eXo level API
- Experimental
-
getNumberOperations
public long getNumberOperations()
get the number of operations in indexQueue- Returns:
- long for number of operations
- eXo level API
- Experimental
-
getOperations
public List<IndexingOperation> getOperations(int offset, int limit)
-
getOperation
public IndexingOperation getOperation(String operationId)
-
deleteAllOperations
public void deleteAllOperations()
-
deleteOperation
public void deleteOperation(IndexingOperation indexingOperation)
-
-