public abstract class AbstractNodeCleanupWorker extends Object implements NodeCleanupWorker
Modifier and Type | Field and Description |
---|---|
protected DbNodeServiceImpl |
dbNodeService |
protected JobLockService |
jobLockService |
protected org.apache.commons.logging.Log |
logger |
protected NodeDAO |
nodeDAO |
protected TransactionService |
transactionService |
Constructor and Description |
---|
AbstractNodeCleanupWorker()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
List<String> |
doClean()
Calls
doCleanInternal() in a System-user authenticated read-write transaction. |
protected abstract List<String> |
doCleanInternal()
Do the actual cleanup.
|
protected void |
refreshLock()
Helper method to refresh the current job's lock token
|
void |
register() |
void |
setDbNodeService(DbNodeServiceImpl dbNodeService) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setRegistry(NodeCleanupRegistry registry) |
void |
setTransactionService(TransactionService transactionService) |
protected final org.apache.commons.logging.Log logger
protected TransactionService transactionService
protected JobLockService jobLockService
protected DbNodeServiceImpl dbNodeService
protected NodeDAO nodeDAO
public void setRegistry(NodeCleanupRegistry registry)
public void setTransactionService(TransactionService transactionService)
public void setJobLockService(JobLockService jobLockService)
public void setDbNodeService(DbNodeServiceImpl dbNodeService)
public void setNodeDAO(NodeDAO nodeDAO)
public void register()
public List<String> doClean()
doCleanInternal()
in a System-user authenticated read-write transaction.
This method is non-blocking but passes all second and subsequent concurrent invocations
straight through.doClean
in interface NodeCleanupWorker
protected void refreshLock() throws LockAcquisitionException
LockAcquisitionException
Copyright © 2005–2017 Alfresco Software. All rights reserved.