|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigRepositoryIfc
Created: Dec 10, 2009 2:04:20 PM
| Field Summary | |
|---|---|
static String |
RELOAD_DELAY
Field description |
static String |
RESOURCE_URI
Field description |
| Fields inherited from interface tigase.db.comp.ComponentRepository |
|---|
COMP_REPO_BIND |
| Method Summary | |
|---|---|
void |
addItem(String key,
Object value)
Method adds an Item to the configuration repository where the key is the item key constructed of component name, node name and property key name. |
Object |
get(String compName,
String node,
String key,
Object def)
Returns a configuration setting for a given component, node and key. |
String[] |
getCompNames()
Returns all component names for which there are some configuration settings available. |
Map<String,Object> |
getInitProperties()
Method description |
Set<ConfigItem> |
getItemsForComponent(String compName)
Method description |
String[] |
getKeys(String compName,
String node)
Returns an array of all configuration keys for a given component and configuration node. |
Map<String,Object> |
getProperties(String compName)
Returns all known settings for the given component name. |
void |
init(Map<String,Object> params)
Initializes the configuration repository. |
void |
putProperties(String compName,
Map<String,Object> props)
Sets/adds properties for the given component name. |
void |
remove(String compName,
String node,
String key)
Removes a configuration setting from the configuration repository. |
void |
set(String compName,
String node,
String key,
Object value)
Puts/sets/adds/updates a configuration setting to the configuration repository. |
void |
setDefHostname(String hostname)
This is used to load a configuration for a selected cluster node. |
| Methods inherited from interface tigase.db.comp.ComponentRepository |
|---|
addItem, addRepoChangeListener, allItems, contains, getDefaults, getItem, getItemInstance, reload, removeItem, removeRepoChangeListener, setAutoloadTimer, setProperties, size, store, validateItem |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
static final String RELOAD_DELAY
static final String RESOURCE_URI
| Method Detail |
|---|
void init(Map<String,Object> params)
throws ConfigurationException
params -
ConfigurationException
Map<String,Object> getProperties(String compName)
throws ConfigurationException
compName -
ConfigurationExceptionSet<ConfigItem> getItemsForComponent(String compName)
compName -
void putProperties(String compName,
Map<String,Object> props)
throws ConfigurationException
compName - props -
ConfigurationException
Object get(String compName,
String node,
String key,
Object def)
compName - node - key - def -
void set(String compName,
String node,
String key,
Object value)
compName - node - key - value - String[] getCompNames()
String[] getKeys(String compName,
String node)
compName - node -
void remove(String compName,
String node,
String key)
compName - node - key -
void addItem(String key,
Object value)
throws ConfigurationException
key - value -
ConfigurationExceptionvoid setDefHostname(String hostname)
hostname - Map<String,Object> getInitProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||