/** * Reload the config from the default config file * * @exception java.io.IOException * Thrown if the specified config file cannot be read/loaded * @throws java.io.IOException if any. */ public static synchronized void reload() throws IOException { if (m_loadedFromFile) { setInstance(null); init(); } }
/** {@inheritDoc} */ @Override protected void onInit() { try { LOG.info("Loading the configuration file."); VacuumdConfigFactory.init(); getEventManager().addEventListener(this, EventConstants.RELOAD_VACUUMD_CONFIG_UEI); getEventManager().addEventListener(this, EventConstants.RELOAD_DAEMON_CONFIG_UEI); initializeDataSources(); } catch (Throwable ex) { LOG.error("Failed to load outage configuration", ex); throw new UndeclaredThrowableException(ex); } LOG.info("Vacuumd initialization complete"); createScheduler(); scheduleAutomations(); }