public void startupTask() throws Exception { m_watchdog = getEngine().getCurrentWatchDog(); // Sleep initially... try { Thread.sleep(m_initialDelay * 1000L); } catch (InterruptedException e) { throw new InternalWikiException("Interrupted while waiting to start."); } m_watchdog.enterState("Full reindex"); // Reindex everything m_provider.doFullLuceneReindex(); m_watchdog.exitState(); }