|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.conf.AccumuloConfiguration org.apache.accumulo.core.conf.ObservableConfiguration
public abstract class ObservableConfiguration
A configuration that can be observed. Handling of observers is thread-safe.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.accumulo.core.conf.AccumuloConfiguration |
---|
AccumuloConfiguration.AllFilter, AccumuloConfiguration.PrefixFilter, AccumuloConfiguration.PropertyFilter |
Constructor Summary | |
---|---|
ObservableConfiguration()
Creates a new observable configuration. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.accumulo.core.conf.AccumuloConfiguration |
---|
get, getAllPropertiesWithPrefix, getBoolean, getCount, getDefaultConfiguration, getFraction, getFraction, getMaxFilesPerTablet, getMemoryInBytes, getMemoryInBytes, getPath, getPort, getProperties, getTableConfiguration, getTimeInMillis, getTimeInMillis, instantiateClassProperty, invalidateCache, iterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObservableConfiguration()
Method Detail |
---|
public void addObserver(ConfigurationObserver co)
co
- observer
NullPointerException
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |