| org.kuali.rice.config.NodeSettings
All known Subclasses: org.kuali.rice.config.SimpleNodeSettingsStore,
NodeSettings | public interface NodeSettings (Code) | | A local store for node-specific settings. The use of the word "Node" here describes an instance of KEW
(running standalone or embedded). In a clustered environment, it is sometimes useful for individual
nodes within the cluster to have their own settings. Depending on system configuration this configuration
store may or may not be available for use. If the node settings store is not availabe then calls to
query or modify the settings should be no-ops. The availablily can be queried using the isEnabled method.
Since Node Settings are runtime-mutable, it is important that implementations of this class be thread-safe.
author: Kuali Rice Team (kuali-rice@googlegroups.com) |
Method Summary | |
public String | getSetting(String name) Retrieve the value of the setting with the given name. | public Map | getSettings() Returns the settings of this node as an immutable Map. | public boolean | isEnabled() Returns true if node-specific settings are enabled, false otherwise. | public String | removeSetting(String name) Remove the given setting from the node settings. | public void | setSetting(String name, String value) Set the value of the setting with the given name. |
getSetting | public String getSetting(String name)(Code) | | Retrieve the value of the setting with the given name. Will return null if the setting with the
given name does not exist or node settings are not enabled.
the value of the setting, null if the setting does not exis or node settings are not enabled |
getSettings | public Map getSettings()(Code) | | Returns the settings of this node as an immutable Map. If the node settings store
is not enabled, then an empty Map will be returned. The Map
returned by the getSettings method is thread-safe.
|
isEnabled | public boolean isEnabled()(Code) | | Returns true if node-specific settings are enabled, false otherwise. In the case that node settings
are not enabled, the various accessor methods will effectively behave as no-ops.
true if node settings are enabled, false otherwise |
removeSetting | public String removeSetting(String name)(Code) | | Remove the given setting from the node settings. If the setting with the given name does not
exist or node settings are not enabled, then null will be returned.
return the value of the removed setting, null if the setting does not existor node settings are not enabled |
setSetting | public void setSetting(String name, String value)(Code) | | Set the value of the setting with the given name. Has no effect if node settings are not enabled.
|
|
|