/** * Writes statistical information to the report.<p> * * The method reports the total number of threads started * (equals to the number of indexed files), the number of returned * threads (equals to the number of successfully indexed files), * and the number of abandoned threads (hanging threads reaching the timeout). * * @param report the report to write the statistics to */ public void reportStatistics(I_CmsReport report) { if (report != null) { CmsMessageContainer message = Messages.get().container( Messages.RPT_SEARCH_INDEXING_STATS_4, new Object[] { new Integer(m_startedCounter), new Integer(m_returnedCounter), new Integer(m_abandonedCounter), report.formatRuntime()}); report.println(message); if (!(report instanceof CmsLogReport) && LOG.isInfoEnabled()) { // only write to the log if report is not already a log report LOG.info(message.key()); } } }
/** * Writes statistical information to the report.<p> * * The method reports the total number of threads started * (equals to the number of indexed files), the number of returned * threads (equals to the number of successfully indexed files), * and the number of abandoned threads (hanging threads reaching the timeout). * * @param report the report to write the statistics to */ public void reportStatistics(I_CmsReport report) { if (report != null) { CmsMessageContainer message = Messages.get().container( Messages.RPT_SEARCH_INDEXING_STATS_4, new Object[] { new Integer(m_startedCounter), new Integer(m_returnedCounter), new Integer(m_abandonedCounter), report.formatRuntime()}); report.println(message); if (!(report instanceof CmsLogReport) && LOG.isInfoEnabled()) { // only write to the log if report is not already a log report LOG.info(message.key()); } } } }
org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, report.formatRuntime())); report.println(Messages.get().container(Messages.RPT_STATICEXPORT_END_0), I_CmsReport.FORMAT_HEADLINE);
report.println(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, report.formatRuntime())); report.println(Messages.get().container(Messages.RPT_STATICEXPORT_END_0), I_CmsReport.FORMAT_HEADLINE);
/** * @see java.lang.Runnable#run() */ @Override public void run() { I_CmsReport report = getReport(); report.println( Messages.get().container(Messages.RPT_UPDATEXML_BEGIN_UPDATE_THREAD_0), I_CmsReport.FORMAT_HEADLINE); try { // update xml contents updateXmlContents(report, m_settings.getVfsFolder(), m_settings.getIncludeSubFolders(), m_cmsObject); } catch (Throwable f) { m_errorUpdate += 1; report.println(Messages.get().container(Messages.RPT_UPDATETXML_UPDATE_ERROR_0)); if (LOG.isErrorEnabled()) { LOG.error(f.toString()); } } // append runtime statistics to report getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_STAT_0)); getReport().println( org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, getReport().formatRuntime())); getReport().println( Messages.get().container(Messages.RPT_UPDATEXML_END_UPDATE_THREAD_0), I_CmsReport.FORMAT_HEADLINE); }
org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, getReport().formatRuntime())); getReport().println( org.opencms.staticexport.Messages.get().container(org.opencms.staticexport.Messages.RPT_STATICEXPORT_END_0),
org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, getReport().formatRuntime())); getReport().println( Messages.get().container(Messages.RPT_CONVERTXML_THREAD_END_0),
org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, getReport().formatRuntime())); getReport().println(Messages.get().container(Messages.RPT_TAGREPLACE_END_0), I_CmsReport.FORMAT_HEADLINE);
org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, getReport().formatRuntime())); getReport().println(Messages.get().container(Messages.RPT_XMLCONTENTREPAIR_END_0), I_CmsReport.FORMAT_HEADLINE);
String.valueOf(publishedFolderCount), String.valueOf(deletedFolderCount), report.formatRuntime()};
org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, getReport().formatRuntime())); getReport().println(Messages.get().container(Messages.RPT_XMLCONTENTREPAIR_END_0), I_CmsReport.FORMAT_HEADLINE);
String.valueOf(publishedFolderCount), String.valueOf(deletedFolderCount), report.formatRuntime()};
String.valueOf(publishedFolderCount), String.valueOf(deletedFolderCount), report.formatRuntime()}; CmsMessageContainer message = Messages.get().container(Messages.RPT_PUBLISH_STAT_4, msgArgs); if (LOG.isInfoEnabled()) {
/** * @see java.lang.Runnable#run() */ @Override public void run() { getReport().println( Messages.get().container( Messages.RPT_CHANGEELEMENTLOCALE_BEGIN_2, m_settings.getOldLocale(), m_settings.getNewLocale()), I_CmsReport.FORMAT_HEADLINE); try { // change the element locales changeElementLocales(); } catch (CmsException e) { getReport().println(e); } // append runtime statistics to report getReport().print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_STAT_0)); getReport().println( org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_STAT_DURATION_1, getReport().formatRuntime())); getReport().println( Messages.get().container(Messages.RPT_CHANGEELEMENTLOCALE_END_0), I_CmsReport.FORMAT_HEADLINE); }