Class 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 Detail

    • Method Detail

      • init

        public void init​(String connectorName)
        Description copied from interface: IndexingService
        Add a init operation to the indexing queue to init the index
        Specified by:
        init in interface IndexingService
        Parameters:
        connectorName - Name of the connector
      • index

        public void index​(String connectorName,
                          String id)
        Description copied from interface: IndexingService
        Add a create operation to the indexing queue
        Specified by:
        index in interface IndexingService
        Parameters:
        connectorName - Name of the connector
        id - id of the document
      • reindex

        public void reindex​(String connectorName,
                            String id)
        Description copied from interface: IndexingService
        Add a update operation to the indexing queue
        Specified by:
        reindex in interface IndexingService
        Parameters:
        connectorName - Name of the connector
        id - id of the document
      • unindex

        public void unindex​(String connectorName,
                            String id)
        Description copied from interface: IndexingService
        Add a delete operation to the indexing queue
        Specified by:
        unindex in interface IndexingService
        Parameters:
        connectorName - Name of the connector
        id - 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
      • deleteAllOperations

        public void deleteAllOperations()
      • deleteOperation

        public void deleteOperation​(IndexingOperation indexingOperation)