|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.conf.Configured org.apache.hadoop.conf.ReconfigurableBase
public abstract class ReconfigurableBase
Utility base class for implementing the Reconfigurable interface. Subclasses should override reconfigurePropertyImpl to change individual properties and getReconfigurableProperties to get all properties that can be changed at run time.
Constructor Summary | |
---|---|
ReconfigurableBase()
Construct a ReconfigurableBase. |
|
ReconfigurableBase(Configuration conf)
Construct a ReconfigurableBase with the Configuration
conf. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
---|
getConf, setConf |
Constructor Detail |
---|
public ReconfigurableBase()
public ReconfigurableBase(Configuration conf)
Configuration
conf.
Method Detail |
---|
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 Reconfigurable
ReconfigurationException
public abstract Collection<String> getReconfigurableProperties()
getReconfigurableProperties
in interface Reconfigurable
public boolean isPropertyReconfigurable(String property)
isPropertyReconfigurable
in interface Reconfigurable
protected abstract void reconfigurePropertyImpl(String property, String newVal) throws ReconfigurationException
ReconfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |