Interface JCRIndexingService
- All Known Implementing Classes:
JCRIndexingServiceImpl
public interface JCRIndexingService
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyIndexChangesOnQueue(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 QueuevoidapplyIndexChangesOnQueue(org.exoplatform.services.jcr.impl.core.query.ChangesFilterListsWrapper changes, String workspaceId) JCR Index Changes applied on JCR to propagate for other nodes through Queuevoidinit(org.exoplatform.services.jcr.impl.core.query.QueryHandler handler, org.exoplatform.services.jcr.config.QueryHandlerEntry config) Initialize JCR Indexing Servicevoid1/ Read from Queue
2/ Index in JCR
3/ Update Queue to mark operation as executed for this nodedefault voidregisterWorkspaceIndex(String workspaceId, String indexDirectory, BooleanSupplier preparingACopy) Called once a workspace's index is ready at startup.
-
Method Details
-
processIndexingQueue
-
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 UUIDaddedNodes- added nodes JCR UUIDparentRemovedNodes- removed Parent JCR nodes UUIDparentAddedNodes- added Parent JCR nodes UUIDworkspaceId- 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 itindexDirectory- the index's directorypreparingACopy- true while this node prepares a copy of the index for another node: the index's marker is not written meanwhile
-