|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeSettings
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.
Method Summary | |
---|---|
String |
getSetting(String name)
Retrieve the value of the setting with the given name. |
Map |
getSettings()
Returns the settings of this node as an immutable Map. |
boolean |
isEnabled()
Returns true if node-specific settings are enabled, false otherwise. |
String |
removeSetting(String name)
Remove the given setting from the node settings. |
void |
setSetting(String name,
String value)
Set the value of the setting with the given name. |
Method Detail |
---|
String getSetting(String name)
void setSetting(String name, String value)
String removeSetting(String name)
Map getSettings()
boolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |