protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } };
protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } };
protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } };
protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } };
public PropertyFileSnitch(int refreshPeriodInSeconds) throws ConfigurationException { reloadConfiguration(false); try { FBUtilities.resourceToFile(SNITCH_PROPERTIES_FILENAME); Runnable runnable = new WrappedRunnable() { protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } }; ResourceWatcher.watch(SNITCH_PROPERTIES_FILENAME, runnable, refreshPeriodInSeconds * 1000); } catch (ConfigurationException ex) { logger.error("{} found, but does not look like a plain file. Will not watch it for changes", SNITCH_PROPERTIES_FILENAME); } }
public PropertyFileSnitch(int refreshPeriodInSeconds) throws ConfigurationException { reloadConfiguration(false); try { FBUtilities.resourceToFile(SNITCH_PROPERTIES_FILENAME); Runnable runnable = new WrappedRunnable() { protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } }; ResourceWatcher.watch(SNITCH_PROPERTIES_FILENAME, runnable, refreshPeriodInSeconds * 1000); } catch (ConfigurationException ex) { logger.error("{} found, but does not look like a plain file. Will not watch it for changes", SNITCH_PROPERTIES_FILENAME); } }
public PropertyFileSnitch(int refreshPeriodInSeconds) throws ConfigurationException { reloadConfiguration(false); try { FBUtilities.resourceToFile(SNITCH_PROPERTIES_FILENAME); Runnable runnable = new WrappedRunnable() { protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } }; ResourceWatcher.watch(SNITCH_PROPERTIES_FILENAME, runnable, refreshPeriodInSeconds * 1000); } catch (ConfigurationException ex) { logger.error("{} found, but does not look like a plain file. Will not watch it for changes", SNITCH_PROPERTIES_FILENAME); } }
public PropertyFileSnitch(int refreshPeriodInSeconds) throws ConfigurationException { reloadConfiguration(false); try { FBUtilities.resourceToFile(SNITCH_PROPERTIES_FILENAME); Runnable runnable = new WrappedRunnable() { protected void runMayThrow() throws ConfigurationException { reloadConfiguration(true); } }; ResourceWatcher.watch(SNITCH_PROPERTIES_FILENAME, runnable, refreshPeriodInSeconds * 1000); } catch (ConfigurationException ex) { logger.error("{} found, but does not look like a plain file. Will not watch it for changes", SNITCH_PROPERTIES_FILENAME); } }