|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.config.jmx.BaseConfigMBean
public class BaseConfigMBean
A basic implementation of a Config MBean that allows for operations on
properties contained in the AbstractConfiguration
.
Constructor Summary | |
---|---|
BaseConfigMBean(org.apache.commons.configuration.AbstractConfiguration config)
|
Method Summary | |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Calls config.addrProperty() . |
void |
clearProperty(java.lang.String key)
Calls config.clearProperty() . |
java.lang.Object |
getProperty(java.lang.String key)
Returns the current value of a property given a key |
java.lang.Object |
obtainProperties()
Returns all Properties. |
void |
updateProperty(java.lang.String key,
java.lang.String value)
Calls config.setProperty() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseConfigMBean(org.apache.commons.configuration.AbstractConfiguration config)
Method Detail |
---|
public java.lang.Object obtainProperties()
ConfigMBean
Properties
, but doing so will make this operation dissapear
from the JConsole.
obtainProperties
in interface ConfigMBean
public java.lang.Object getProperty(java.lang.String key)
ConfigMBean
getProperty
in interface ConfigMBean
public void updateProperty(java.lang.String key, java.lang.String value)
config.setProperty()
. If the underlying configuration
is ConcurrentCompositeConfiguration
, it calls ConcurrentCompositeConfiguration.setOverrideProperty(String, Object)
instead.
updateProperty
in interface ConfigMBean
public void clearProperty(java.lang.String key)
config.clearProperty()
. If the underlying configuration
is ConcurrentCompositeConfiguration
, it calls ConcurrentCompositeConfiguration.clearOverrideProperty(String)
instead.
Warning: ConcurrentCompositeConfiguration.clearOverrideProperty(String)
does not clear the
property with the whole ConcurrentCompositeConfiguration
, if any other child configurations in it has the same property.
clearProperty
in interface ConfigMBean
public void addProperty(java.lang.String key, java.lang.String value)
config.addrProperty()
. If the underlying configuration
is ConcurrentCompositeConfiguration
, it calls ConcurrentCompositeConfiguration.setOverrideProperty(String, Object)
instead.
addProperty
in interface ConfigMBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |