Merged 5.0.N (5.0.3) to 5.1.N (5.1.1)

113290 adavis: Merged V4.2-BUG-FIX (4.2.6) to 5.0.N (5.0.3)
      113278 adavis: Merged V4.1-BUG-FIX (4.1.11) to V4.2-BUG-FIX (4.2.6)
         112985 amorarasu: Merged DEV to V4.1-BUG-FIX (4.1.11)
            111742: MNT-10305: DeletedNodeCleanupWorker should be improved
               - Delete in multiple statements, filtering by transactions with commit time in a time interval.
            112722: Improved the algorithm that sets appropriate time windows for delete, based on the evolution of the purge process.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@113397 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tatyana Valkevych
2015-09-30 09:49:37 +00:00
parent 7966debdb6
commit cb1d757f4b
6 changed files with 150 additions and 74 deletions

View File

@@ -323,12 +323,13 @@ public interface NodeDAO extends NodeBulkLoader
public void deleteNode(Long nodeId);
/**
* Purge deleted nodes where their participating transactions are older than a given time.
* Purge deleted nodes where their participating transactions are in-between the given time interval.
*
* @param maxTxnCommitTimeMs ignore transactions created <i>after</i> this time
* @return Returns the number of deleted nodes purged
* @param fromTxnCommitTimeMs from commit time
* @param toTxnCommitTimeMs to commit time
* @return Returns the number of deleted nodes purged
*/
public int purgeNodes(long maxTxnCommitTimeMs);
public int purgeNodes(long fromTxnCommitTimeMs, long toTxnCommitTimeMs);
/*
* Properties