Class JCRIndexingQueueDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<JCRIndexQueueEntity,Long>
org.exoplatform.services.jcr.ext.index.persistent.impl.JCRIndexingQueueDAOImpl
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<JCRIndexQueueEntity,,Long> JCRIndexingQueueDAO
public class JCRIndexingQueueDAOImpl
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<JCRIndexQueueEntity,Long>
implements JCRIndexingQueueDAO
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
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 class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
JCRIndexingQueueDAOImpl
public JCRIndexingQueueDAOImpl()
-
-
Method Details
-
findAllOperationNotExecutedByClusterNode
public List<JCRIndexQueueEntity> findAllOperationNotExecutedByClusterNode(int offset, int limit, String clusterNodeName) - Specified by:
findAllOperationNotExecutedByClusterNodein interfaceJCRIndexingQueueDAO
-
findAllOperationExecutedByClusterNode
public List<JCRIndexQueueEntity> findAllOperationExecutedByClusterNode(String oldClusterNodeName, String clusterNodeName, long lastExecutedId, int offset, int limit) - Specified by:
findAllOperationExecutedByClusterNodein interfaceJCRIndexingQueueDAO
-
findOperationsOfWorkspaceExecutedByClusterNode
public List<JCRIndexQueueEntity> findOperationsOfWorkspaceExecutedByClusterNode(String workspace, String clusterNodeName, int limit) - Specified by:
findOperationsOfWorkspaceExecutedByClusterNodein interfaceJCRIndexingQueueDAO- 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
-
findLowestOperationIdNotExecutedByClusterNode
- Specified by:
findLowestOperationIdNotExecutedByClusterNodein interfaceJCRIndexingQueueDAO- 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
-
findOperationsOfWorkspaceExecutedByAnotherClusterNode
public List<JCRIndexQueueEntity> findOperationsOfWorkspaceExecutedByAnotherClusterNode(String workspace, String otherClusterNodeName, String clusterNodeName, long lastExecutedId, Calendar queuedBefore, int limit) - Specified by:
findOperationsOfWorkspaceExecutedByAnotherClusterNodein interfaceJCRIndexingQueueDAO- 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
-
deleteOperationsByJCRUUID
- Specified by:
deleteOperationsByJCRUUIDin interfaceJCRIndexingQueueDAO
-