Examples of URLConfigurationSource


Examples of com.netflix.config.sources.URLConfigurationSource

     * Create an instance with default {@link URLConfigurationSource#URLConfigurationSource()} and
     * {@link FixedDelayPollingScheduler#FixedDelayPollingScheduler()} and start polling the source
     * if there is any URLs available for polling.
     */
    public DynamicURLConfiguration() {
        URLConfigurationSource source = new URLConfigurationSource();
        if (source.getConfigUrls() != null && source.getConfigUrls().size() > 0) {
            startPolling(source, new FixedDelayPollingScheduler());
        }
    }
View Full Code Here

Examples of com.netflix.config.sources.URLConfigurationSource

     * applying the polling result to a configuration.
     * @param urls The set of URLs to be polled by {@link URLConfigurationSource}
     */
    public DynamicURLConfiguration(int initialDelayMillis, int delayMillis, boolean ignoreDeletesFromSource,
            String... urls) {
        super(new URLConfigurationSource(urls),
                new FixedDelayPollingScheduler(initialDelayMillis, delayMillis, ignoreDeletesFromSource));
    }   
View Full Code Here

Examples of com.netflix.config.sources.URLConfigurationSource

        if (breakerboxConfiguration.getUrls().isEmpty()) {
            return;
        }
        ConfigurationManager.install(
                new DynamicConfiguration(
                    new URLConfigurationSource(breakerboxConfiguration.getUrls().split(",")),
                    new TenacityPollingScheduler(
                            (int)breakerboxConfiguration.getInitialDelay().toMilliseconds(),
                            (int)breakerboxConfiguration.getDelay().toMilliseconds(),
                            true)));
    }
View Full Code Here

Examples of com.netflix.config.sources.URLConfigurationSource

    try {
      //Find the config file
      File turbineConfig = FileLocator.findUniqueFile("dashboard-config.properties");
      LOGGER.debug("Found dashboard config file: "+turbineConfig.getAbsolutePath());
      //Add it as a configuration source
      PolledConfigurationSource source = new URLConfigurationSource(new URL(FILE_PREFIX+turbineConfig.getAbsolutePath()));
      DynamicConfiguration configuration = new DynamicConfiguration(source, new FixedDelayPollingScheduler());
      //Add the configurations to Archiaus
      ConfigurationManager.install(configuration);
      //Init Turbine
      TurbineInit.init();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.