|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.repository.PagedQueryIteratorFactory atg.purge.PurgeProducer
public class PurgeProducer
Purge producer is obtaining candidate items for purging and pass them to purge executor for actual purge work. It also keeps track of purge results and update corresponding purge progress item. We are checking purge progress repository to allow only a single purge to be executed at a time.
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 | |
---|---|
PurgeProducer()
|
Method Summary | |
---|---|
atg.repository.PagedQueryIterator |
createPagedQueryIterator(PurgeConfiguration pPurgeConfiguration)
Create a new PagedQueryIterator, using property values set on this factory and purge configuration. |
protected PurgeItem |
createPurgeItem(RepositoryItem pRepositoryItem,
PurgeConfiguration pPurgeConfiguration)
Construct purge item object based on current repository item and purge configuration |
atg.purge.PurgeSummary |
createPurgeSummary(PurgeConfiguration pPurgeConfiguration)
Create purge summary results based on purge configuration |
void |
doStartService()
Ensure that all required properties are set |
ProcessConfiguration |
getProcessConfiguration()
Returns property processConfiguration |
PurgeConfiguration |
getPurgeConfiguration()
Returns property purgeConfiguration |
PurgeExecutor |
getPurgeExecutor()
Returns property purgeExecutor |
atg.purge.PurgeProgressTools |
getPurgeProgressTools()
Returns property purgeProgressTools |
boolean |
isPurgeRunning()
Returns true if purge is currently running or hanging and false otherwise. |
void |
performTask()
Start purge process work using current purge configuration in a new thread so that we are not blocking method execution until purge completed. |
void |
performTask(PurgeConfiguration pPurgeConfiguration)
Start purge process work using selected purge configuration in a new thread so that we are not blocking method execution until purge completed. |
void |
performTaskAndWait()
Start purge process work using current purge configuration. |
void |
performTaskAndWait(PurgeConfiguration pPurgeConfiguration)
Start purge process work using selected purge configuration. |
void |
setProcessConfiguration(ProcessConfiguration pProcessConfiguration)
Sets property processConfiguration |
void |
setPurgeConfiguration(PurgeConfiguration pPurgeConfiguration)
Sets property purgeConfiguration |
void |
setPurgeExecutor(PurgeExecutor pPurgeExecutor)
Sets property purgeExecutor |
void |
setPurgeProgressTools(atg.purge.PurgeProgressTools pPurgeProgressTools)
Sets property purgeProgressTools |
void |
startPurge()
Start purge process work using current purge configuration. |
void |
startPurge(PurgeConfiguration pPurgeConfiguration)
Start purge process work using selected purge configuration. |
Methods inherited from class atg.repository.PagedQueryIteratorFactory |
---|
countItems, countItemsUsingInnerClass, createPagedQueryIterator, getBaseQuery, getItemDescriptorName, getPageSize, getPagingPropertyName, getQueryOptions, getRepository, getRepositoryItemGroup, getRepositoryView, getTransactionManager, setBaseQuery, setItemDescriptorName, setPageSize, setPagingPropertyName, setQueryOptions, setRepository, setRepositoryItemGroup, setRepositoryView, setTransactionManager |
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 PurgeProducer()
Method Detail |
---|
public PurgeExecutor getPurgeExecutor()
purgeExecutor
public void setPurgeExecutor(PurgeExecutor pPurgeExecutor)
purgeExecutor
pPurgeExecutor
- the purge executorpublic PurgeConfiguration getPurgeConfiguration()
purgeConfiguration
public void setPurgeConfiguration(PurgeConfiguration pPurgeConfiguration)
purgeConfiguration
pPurgeConfiguration
- the purge configurationpublic ProcessConfiguration getProcessConfiguration()
processConfiguration
public void setProcessConfiguration(ProcessConfiguration pProcessConfiguration)
processConfiguration
pProcessConfiguration
- the process configurationpublic atg.purge.PurgeProgressTools getPurgeProgressTools()
purgeProgressTools
public void setPurgeProgressTools(atg.purge.PurgeProgressTools pPurgeProgressTools)
purgeProgressTools
pPurgeProgressTools
- the purge progress tools to work with purge progress repositorypublic void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic boolean isPurgeRunning()
public void startPurge() throws java.lang.Exception
java.lang.Exception
- if there is an errorpublic void startPurge(PurgeConfiguration pPurgeConfiguration) throws java.lang.Exception
pPurgeConfiguration
- the purge configuration
java.lang.Exception
- if there is an errorpublic void performTask()
public void performTask(PurgeConfiguration pPurgeConfiguration)
pPurgeConfiguration
- the purge configurationpublic void performTaskAndWait()
public void performTaskAndWait(PurgeConfiguration pPurgeConfiguration)
pPurgeConfiguration
- the purge configurationpublic atg.purge.PurgeSummary createPurgeSummary(PurgeConfiguration pPurgeConfiguration) throws RepositoryException
pPurgeConfiguration
- the purge configuration
RepositoryException
- if there is an error while performing
the query operationpublic atg.repository.PagedQueryIterator createPagedQueryIterator(PurgeConfiguration pPurgeConfiguration) throws RepositoryException
pPurgeConfiguration
- the purge configuration
RepositoryException
- if there is an error while performing
the query operationprotected PurgeItem createPurgeItem(RepositoryItem pRepositoryItem, PurgeConfiguration pPurgeConfiguration)
pRepositoryItem
- the repository itempPurgeConfiguration
- the purge configuration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |