| java.lang.Object java.lang.Thread org.opencms.report.A_CmsReportThread
All known Subclasses: org.opencms.workplace.threads.CmsExternalLinksValidatorThread, org.opencms.workplace.threads.CmsSynchronizeThread, org.opencms.workplace.tools.content.CmsChangeElementLocaleThread, org.opencms.workplace.tools.content.CmsMergePagesThread, org.opencms.workplace.tools.content.CmsElementRenameThread, org.opencms.workplace.tools.database.CmsHtmlImportThread, org.opencms.workplace.tools.content.check.CmsContentCheckThread, org.opencms.workplace.threads.CmsExportThread, org.opencms.publish.CmsPublishThread, org.opencms.workplace.threads.CmsModuleReplaceThread, org.opencms.workplace.threads.CmsProjectDeleteThread, org.opencms.workplace.tools.history.CmsHistoryClearThread, org.opencms.workplace.tools.database.CmsStaticExportThread, org.opencms.workplace.threads.CmsDatabaseImportThread, org.opencms.workplace.tools.database.CmsRemovePubLocksThread, org.opencms.workplace.threads.CmsModuleDeleteThread, org.opencms.workplace.threads.CmsRelationsValidatorThread, org.opencms.workplace.tools.searchindex.CmsIndexingReportThread, org.opencms.workplace.tools.content.CmsTagReplaceThread, org.opencms.workplace.threads.CmsXmlContentRepairThread,
A_CmsReportThread | abstract public class A_CmsReportThread extends Thread implements I_CmsReportThread(Code) | | Provides a common Thread class for the reports.
author: Alexander Kandzior version: $Revision: 1.25 $ since: 6.0.0 |
A_CmsReportThread | protected A_CmsReportThread(CmsObject cms, String name)(Code) | | Constructs a new report Thread with the given name.
Parameters: cms - the current OpenCms context object Parameters: name - the name of the Thread |
addError | public void addError(Object obj)(Code) | | Adds an error object to the list of errors that occured during the report.
Parameters: obj - the error object |
getCms | protected CmsObject getCms()(Code) | | Returns the OpenCms context object this Thread is initialized with.
the OpenCms context object this Thread is initialized with |
getError | public Throwable getError()(Code) | | Returns the error exception in case there was an error during the execution of
this Thread, null otherwise.
the error exception in case there was an error, null otherwise |
getErrors | public List getErrors()(Code) | | Returns a list of all errors that occured during the report.
an error list that occured during the report |
getReport | protected I_CmsReport getReport()(Code) | | Returns the report where the output of this Thread is written to.
the report where the output of this Thread is written to |
getReportUpdate | abstract public String getReportUpdate()(Code) | | Returns the part of the report that is ready for output.
the part of the report that is ready for output |
getRuntime | public synchronized long getRuntime()(Code) | | Returns the time this report has been running.
the time this report has been running |
getUUID | public CmsUUID getUUID()(Code) | | Returns the OpenCms UUID of this report thread.
the OpenCms UUID of this report thread |
hasError | public boolean hasError()(Code) | | Returns if the report generated an error output.
true if the report generated an error, otherwise false |
initHtmlReport | protected void initHtmlReport(Locale locale)(Code) | | Initialize a HTML report for this Thread.
Parameters: locale - the locale for the report output messages |
initOldHtmlReport | protected void initOldHtmlReport(Locale locale)(Code) | | Initialize a HTML report for this Thread.
This method is reserved for older report threads that still use
XML templates to generate their output.
Parameters: locale - the locale for the report output messages |
isDoomed | public synchronized boolean isDoomed()(Code) | | Returns true if this thread is already "doomed" to be deleted.
A OpenCms deamon Thread (the "Grim Reaper") will collect all
doomed Threads, i.e. threads that are not longer active for some
time.
true if this thread is already "doomed" to be deleted |
|
|