public abstract class ObservableConfiguration extends AccumuloConfiguration
AccumuloConfiguration.MatchFilter, 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, get, getAllPropertiesWithPrefix, getBoolean, getCount, getDefaultConfiguration, getFraction, getFraction, getMaxFilesPerTablet, getMemoryInBytes, getMemoryInBytes, getPath, getPort, getProperties, getTableConfiguration, getTimeInMillis, getTimeInMillis, getUpdateCount, instantiateClassProperty, invalidateCache, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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–2018 The Apache Software Foundation. All rights reserved.