com.netflix.config
Class DynamicPropertyUpdater
java.lang.Object
com.netflix.config.DynamicPropertyUpdater
public class DynamicPropertyUpdater
- extends java.lang.Object
Apply the WatchedUpdateResult to the configuration.
If the result is a full result from source, each property in the result is added/set in the configuration. Any
property that is in the configuration - but not in the result - is deleted if ignoreDeletesFromSource is false.
If the result is incremental, properties will be added and changed from the partial result in the configuration.
Deleted properties are deleted from configuration iff ignoreDeletesFromSource is false.
This code is shared by both AbstractPollingScheduler and DynamicWatchedConfiguration.
|
Method Summary |
void |
updateProperties(WatchedUpdateResult result,
org.apache.commons.configuration.Configuration config,
boolean ignoreDeletesFromSource)
Updates the properties in the config param given the contents of the result param. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicPropertyUpdater
public DynamicPropertyUpdater()
updateProperties
public void updateProperties(WatchedUpdateResult result,
org.apache.commons.configuration.Configuration config,
boolean ignoreDeletesFromSource)
- Updates the properties in the config param given the contents of the result param.
- Parameters:
result - either an incremental or full set of dataconfig - underlying config mapignoreDeletesFromSource - if true, deletes will be skipped