org.apache.accumulo.core.conf
public abstract class ObservableConfiguration extends AccumuloConfiguration
AccumuloConfiguration.AllFilter, AccumuloConfiguration.PrefixFilter, AccumuloConfiguration.PropertyFilter
Constructor and Description |
---|
ObservableConfiguration()
Creates a new observable configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addObserver(ConfigurationObserver co)
Adds an observer.
|
void |
expireAllObservers()
Expires all observers.
|
Collection<ConfigurationObserver> |
getObservers()
Gets the current set of observers.
|
void |
propertiesChanged()
Notifies all observers that properties changed.
|
void |
propertyChanged(String key)
Notifies all observers that a property changed.
|
void |
removeObserver(ConfigurationObserver co)
Removes an observer.
|
get, getAllPropertiesWithPrefix, getBoolean, getCount, getDefaultConfiguration, getFraction, getFraction, getMaxFilesPerTablet, getMemoryInBytes, getMemoryInBytes, getPath, getPort, getProperties, getTableConfiguration, getTimeInMillis, getTimeInMillis, instantiateClassProperty, invalidateCache, iterator
public ObservableConfiguration()
public void addObserver(ConfigurationObserver co)
co
- observerNullPointerException
- if co is nullpublic void removeObserver(ConfigurationObserver co)
co
- observerpublic Collection<ConfigurationObserver> getObservers()
public void expireAllObservers()
public void propertyChanged(String key)
key
- configuration property keypublic void propertiesChanged()
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.