Interface JCRIndexingQueueDAO

All Superinterfaces:
org.exoplatform.commons.api.persistence.GenericDAO<JCRIndexQueueEntity, Long>
All Known Implementing Classes:
JCRIndexingQueueDAOImpl

public interface JCRIndexingQueueDAO extends org.exoplatform.commons.api.persistence.GenericDAO<JCRIndexQueueEntity, Long>
  • Method Details

    • findAllOperationNotExecutedByClusterNode

      List<JCRIndexQueueEntity> findAllOperationNotExecutedByClusterNode(int offset, int limit, String clusterNodeName)
    • findAllOperationExecutedByClusterNode

      List<JCRIndexQueueEntity> findAllOperationExecutedByClusterNode(String oldClusterNodeName, String clusterNodeName, long lastExecutedId, int offset, int limit)
    • deleteOperationsByJCRUUID

      void deleteOperationsByJCRUUID(String removeNodeUUID)
    • findLowestOperationIdNotExecutedByClusterNode

      Long findLowestOperationIdNotExecutedByClusterNode(String clusterNodeName)
      Parameters:
      clusterNodeName - a cluster node
      Returns:
      the lowest id of the operations the cluster node did not execute, or null when it executed them all
    • findOperationsOfWorkspaceExecutedByClusterNode

      List<JCRIndexQueueEntity> findOperationsOfWorkspaceExecutedByClusterNode(String workspace, String clusterNodeName, int limit)
      Parameters:
      workspace - the workspace of the operations
      clusterNodeName - the cluster node that executed them
      limit - the maximum number of operations returned
      Returns:
      the operations of the workspace that the cluster node executed, in id order
    • findOperationsOfWorkspaceExecutedByAnotherClusterNode

      List<JCRIndexQueueEntity> findOperationsOfWorkspaceExecutedByAnotherClusterNode(String workspace, String otherClusterNodeName, String clusterNodeName, long lastExecutedId, Calendar queuedBefore, int limit)
      Parameters:
      workspace - the workspace of the operations
      otherClusterNodeName - the cluster node that executed them
      clusterNodeName - the cluster node that did not execute them
      lastExecutedId - the greatest id returned
      queuedBefore - the operations queued from that time on are not returned
      limit - the maximum number of operations returned
      Returns:
      the operations of the workspace, up to the id and queued before the time, that the other cluster node executed and the cluster node did not, in id order