CmsIndexingThread thread = new CmsIndexingThread( indexer.getCms(), res, m_startedCounter, report); thread.setPriority(Thread.MIN_PRIORITY); thread.start(); try { thread.join(m_timeout); } catch (InterruptedException e) { if (thread.isAlive()) { thread.interrupt(); if (LOG.isWarnEnabled()) { LOG.warn(Messages.get().getBundle().key(Messages.LOG_INDEXING_TIMEOUT_1, res.getRootPath())); I_CmsSearchDocument doc = thread.getResult(); if (doc != null) {
if (!isInterrupted()) { indexDocument(doc); if ((m_report != null) && !isInterrupted()) { m_report.println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), if (isInterrupted() && LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_ABANDONED_THREAD_FINISHED_1, m_res.getRootPath()));
m_result = createIndexDocument(m_cms, m_res, m_index, m_count, m_report); docOk = true; if (isInterrupted() && LOG.isDebugEnabled()) { LOG.debug( Messages.get().getBundle().key(Messages.LOG_ABANDONED_THREAD_FINISHED_1, m_res.getRootPath()));
Thread thread = new CmsIndexingThread(cms, writer, res, documentType, index, report); m_startedCounter++; thread.setPriority(Thread.MIN_PRIORITY);