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 Summary
Modifier and TypeMethodDescriptionvoiddeleteOperationsByJCRUUID(String removeNodeUUID) findAllOperationExecutedByClusterNode(String oldClusterNodeName, String clusterNodeName, long lastExecutedId, int offset, int limit) findAllOperationNotExecutedByClusterNode(int offset, int limit, String clusterNodeName) findLowestOperationIdNotExecutedByClusterNode(String clusterNodeName) findOperationsOfWorkspaceExecutedByAnotherClusterNode(String workspace, String otherClusterNodeName, String clusterNodeName, long lastExecutedId, Calendar queuedBefore, int limit) findOperationsOfWorkspaceExecutedByClusterNode(String workspace, String clusterNodeName, int limit) Methods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
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
-
findLowestOperationIdNotExecutedByClusterNode
- 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 operationsclusterNodeName- the cluster node that executed themlimit- 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 operationsotherClusterNodeName- the cluster node that executed themclusterNodeName- the cluster node that did not execute themlastExecutedId- the greatest id returnedqueuedBefore- the operations queued from that time on are not returnedlimit- 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
-