com.netflix.config
Class DynamicURLConfiguration

java.lang.Object
  extended by org.apache.commons.configuration.event.EventSource
      extended by org.apache.commons.configuration.AbstractConfiguration
          extended by com.netflix.config.ConcurrentMapConfiguration
              extended by com.netflix.config.DynamicConfiguration
                  extended by com.netflix.config.DynamicURLConfiguration
All Implemented Interfaces:
org.apache.commons.configuration.Configuration

public class DynamicURLConfiguration
extends DynamicConfiguration

A DynamicConfiguration that uses a URLConfigurationSource and FixedDelayPollingScheduler.


Field Summary
 
Fields inherited from class com.netflix.config.ConcurrentMapConfiguration
map
 
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN
 
Constructor Summary
DynamicURLConfiguration()
          Create an instance with default URLConfigurationSource.URLConfigurationSource() and FixedDelayPollingScheduler.FixedDelayPollingScheduler() and start polling the source if there is any URLs available for polling.
DynamicURLConfiguration(int initialDelayMillis, int delayMillis, boolean ignoreDeletesFromSource, java.lang.String... urls)
          Create an instance and start polling the source.
 
Method Summary
 
Methods inherited from class com.netflix.config.DynamicConfiguration
getSource, init, startPolling, stopLoading
 
Methods inherited from class com.netflix.config.ConcurrentMapConfiguration
addConfigurationListener, addErrorListener, addProperty, addPropertyDirect, addPropertyImpl, clear, clearConfigurationListeners, clearErrorListeners, clearPropertyDirect, containsKey, copy, fireError, fireEvent, getConfigurationListeners, getErrorListeners, getKeys, getProperties, getProperty, isEmpty, loadProperties, removeConfigurationListener, removeErrorListener, setProperty, setPropertyImpl
 
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration
addErrorLogListener, append, clearProperty, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setThrowExceptionOnMissing, subset
 
Methods inherited from class org.apache.commons.configuration.event.EventSource
clone, createErrorEvent, createEvent, isDetailEvents, setDetailEvents
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicURLConfiguration

public DynamicURLConfiguration()
Create an instance with default URLConfigurationSource.URLConfigurationSource() and FixedDelayPollingScheduler.FixedDelayPollingScheduler() and start polling the source if there is any URLs available for polling.


DynamicURLConfiguration

public DynamicURLConfiguration(int initialDelayMillis,
                               int delayMillis,
                               boolean ignoreDeletesFromSource,
                               java.lang.String... urls)
Create an instance and start polling the source.

Parameters:
initialDelayMillis - initial delay in milliseconds used by FixedDelayPollingScheduler
delayMillis - delay interval in milliseconds used by FixedDelayPollingScheduler
ignoreDeletesFromSource - whether the scheduler should ignore deletes of properties from configuration source when applying the polling result to a configuration.
urls - The set of URLs to be polled by URLConfigurationSource