public class PurgeExecutor extends GenericService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
PurgeExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
Ensure that all required properties are set
|
boolean |
execute(PurgeItem[] pPurgeItems)
Processing purge items by batches each of them in a separate transaction and doing multi-threading
processing for each batch.
|
java.lang.Integer |
getBatchSize()
Returns batch size
|
atg.purge.throttle.ThrottleAlgorithmFactory |
getFactory()
Returns throttle algorithm factory
|
ProcessConfiguration |
getProcessConfiguration()
Returns process configuration
|
atg.purge.handler.PurgeHandler |
getPurgeHandler()
Returns purge handler to process current purge items
|
java.lang.Integer |
getThreadPoolSize()
Returns thread pool size
|
javax.transaction.TransactionManager |
getTransactionManager()
Returns transaction manager
|
void |
setBatchSize(java.lang.Integer pBatchSize)
Sets property
batchSize |
void |
setFactory(atg.purge.throttle.ThrottleAlgorithmFactory pFactory)
Sets property
factory |
void |
setProcessConfiguration(ProcessConfiguration pProcessConfiguration)
Sets property
configuration |
void |
setPurgeHandler(atg.purge.handler.PurgeHandler pPurgeHandler)
Sets property
purgeHandler |
void |
setThreadPoolSize(java.lang.Integer pThreadPoolSize)
Sets property
threadPoolSize |
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Sets property
transactionManager |
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public java.lang.Integer getThreadPoolSize()
public void setThreadPoolSize(java.lang.Integer pThreadPoolSize)
threadPoolSize
pThreadPoolSize
- the thread pool sizepublic java.lang.Integer getBatchSize()
public void setBatchSize(java.lang.Integer pBatchSize)
batchSize
pBatchSize
- the batch sizepublic ProcessConfiguration getProcessConfiguration()
public void setProcessConfiguration(ProcessConfiguration pProcessConfiguration)
configuration
pProcessConfiguration
- the process configurationpublic atg.purge.handler.PurgeHandler getPurgeHandler()
public void setPurgeHandler(atg.purge.handler.PurgeHandler pPurgeHandler)
purgeHandler
pPurgeHandler
- the purge handler to process current purge itemspublic javax.transaction.TransactionManager getTransactionManager()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
transactionManager
pTransactionManager
- the transaction managerpublic atg.purge.throttle.ThrottleAlgorithmFactory getFactory()
public void setFactory(atg.purge.throttle.ThrottleAlgorithmFactory pFactory)
factory
pFactory
- the throttle algorithm factorypublic void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic boolean execute(PurgeItem[] pPurgeItems)
pPurgeItems
- the array of purge items