Interface JCRIndexingService

All Known Implementing Classes:
JCRIndexingServiceImpl

public interface JCRIndexingService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyIndexChangesOnQueue(Set<String> removedNodes, Set<String> addedNodes, Set<String> parentRemovedNodes, Set<String> parentAddedNodes, String workspaceId)
    JCR Index Changes applied on JCR to propagate for other nodes through Queue
    void
    applyIndexChangesOnQueue(org.exoplatform.services.jcr.impl.core.query.ChangesFilterListsWrapper changes, String workspaceId)
    JCR Index Changes applied on JCR to propagate for other nodes through Queue
    void
    init(org.exoplatform.services.jcr.impl.core.query.QueryHandler handler, org.exoplatform.services.jcr.config.QueryHandlerEntry config)
    Initialize JCR Indexing Service
    void
    1/ Read from Queue
    2/ Index in JCR
    3/ Update Queue to mark operation as executed for this node
    default void
    registerWorkspaceIndex(String workspaceId, String indexDirectory, BooleanSupplier preparingACopy)
    Called once a workspace's index is ready at startup.
  • Method Details

    • processIndexingQueue

      void processIndexingQueue() throws Exception
      1/ Read from Queue
      2/ Index in JCR
      3/ Update Queue to mark operation as executed for this node
      Throws:
      Exception
    • applyIndexChangesOnQueue

      void applyIndexChangesOnQueue(org.exoplatform.services.jcr.impl.core.query.ChangesFilterListsWrapper changes, String workspaceId)
      JCR Index Changes applied on JCR to propagate for other nodes through Queue
      Parameters:
      changes -
      workspaceId - REPOSITORY_WORKSPACE
    • applyIndexChangesOnQueue

      void applyIndexChangesOnQueue(Set<String> removedNodes, Set<String> addedNodes, Set<String> parentRemovedNodes, Set<String> parentAddedNodes, String workspaceId)
      JCR Index Changes applied on JCR to propagate for other nodes through Queue
      Parameters:
      removedNodes - removed nodes JCR UUID
      addedNodes - added nodes JCR UUID
      parentRemovedNodes - removed Parent JCR nodes UUID
      parentAddedNodes - added Parent JCR nodes UUID
      workspaceId - REPOSITORY_WORKSPACE
    • init

      void init(org.exoplatform.services.jcr.impl.core.query.QueryHandler handler, org.exoplatform.services.jcr.config.QueryHandlerEntry config)
      Initialize JCR Indexing Service
      Parameters:
      handler -
      config -
    • registerWorkspaceIndex

      default void registerWorkspaceIndex(String workspaceId, String indexDirectory, BooleanSupplier preparingACopy)
      Called once a workspace's index is ready at startup. When the index was copied from another cluster node, the queue operations of the workspace are marked as that copy holds them, so that this node applies what the copy lacks.
      Parameters:
      workspaceId - the workspace of the index, as its queue operations name it
      indexDirectory - the index's directory
      preparingACopy - true while this node prepares a copy of the index for another node: the index's marker is not written meanwhile