org.alfresco.repo.node.db
Class DeletedNodeCleanupWorker

java.lang.Object
  extended by org.alfresco.repo.node.cleanup.AbstractNodeCleanupWorker
      extended by org.alfresco.repo.node.db.DeletedNodeCleanupWorker
All Implemented Interfaces:
NodeCleanupWorker

public class DeletedNodeCleanupWorker
extends AbstractNodeCleanupWorker

Cleans up deleted nodes and dangling transactions that are old enough.

Since:
2.2 SP2

Field Summary
 
Fields inherited from class org.alfresco.repo.node.cleanup.AbstractNodeCleanupWorker
dbNodeService, jobLockService, logger, nodeDAO, transactionService
 
Constructor Summary
DeletedNodeCleanupWorker()
          Default constructor
 
Method Summary
protected  java.util.List doCleanInternal()
          Do the actual cleanup.
 void setMinPurgeAgeDays(int minPurgeAgeDays)
          Set the minimum age (days) that nodes and transactions must be before they get purged.
 
Methods inherited from class org.alfresco.repo.node.cleanup.AbstractNodeCleanupWorker
doClean, refreshLock, register, setDbNodeService, setJobLockService, setNodeDAO, setRegistry, setTransactionService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletedNodeCleanupWorker

public DeletedNodeCleanupWorker()
Default constructor

Method Detail

doCleanInternal

protected java.util.List doCleanInternal()
                                  throws java.lang.Throwable
Do the actual cleanup. Any errors are handled by this base class.

Specified by:
doCleanInternal in class AbstractNodeCleanupWorker
Returns:
Returns the cleanup messages.
Throws:
java.lang.Throwable

setMinPurgeAgeDays

public void setMinPurgeAgeDays(int minPurgeAgeDays)
Set the minimum age (days) that nodes and transactions must be before they get purged. The default is 7 days.

Parameters:
minPurgeAgeDays - the minimum age (in days) before nodes and transactions get purged


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.