|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.purge.PurgeExecutor
public class PurgeExecutor
Purge executor is processing purge items by batches each of them in a separate transaction and doing multi-threading processing for each batch. Throttler is in use to control amount of work we are executing.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
PurgeExecutor()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public PurgeExecutor()
| Method Detail |
|---|
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 factory
public void doStartService()
throws ServiceException
doStartService in class GenericServiceServiceException - if the Service had a problem starting uppublic boolean execute(PurgeItem[] pPurgeItems)
pPurgeItems - the array of purge items
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||