public abstract class ReconfigurableBase extends Configured implements Reconfigurable
| Constructor and Description |
|---|
ReconfigurableBase()
Construct a ReconfigurableBase.
|
ReconfigurableBase(Configuration conf)
Construct a ReconfigurableBase with the
Configuration
conf. |
| Modifier and Type | Method and Description |
|---|---|
abstract Collection<String> |
getReconfigurableProperties()
Return all the properties that can be changed at run time.
|
boolean |
isPropertyReconfigurable(String property)
Return whether a given property is changeable at run time.
|
String |
reconfigureProperty(String property,
String newVal)
Change a configuration property on this object to the value specified.
|
protected abstract void |
reconfigurePropertyImpl(String property,
String newVal)
Change a configuration property.
|
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic ReconfigurableBase()
public ReconfigurableBase(Configuration conf)
Configuration
conf.public final String reconfigureProperty(String property, String newVal) throws ReconfigurationException
ReconfigurationException.
This method makes the change to this objects Configuration
and calls reconfigurePropertyImpl to update internal data structures.
This method cannot be overridden, subclasses should instead override
reconfigureProperty.reconfigureProperty in interface ReconfigurableReconfigurationExceptionpublic abstract Collection<String> getReconfigurableProperties()
getReconfigurableProperties in interface Reconfigurablepublic boolean isPropertyReconfigurable(String property)
isPropertyReconfigurable in interface Reconfigurableprotected abstract void reconfigurePropertyImpl(String property, String newVal) throws ReconfigurationException
ReconfigurationExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.