public interface ConfigRepositoryIfc extends ComponentRepository<ConfigItem>
Repository.Meta, Repository.SchemaId
Modifier and Type | Field and Description |
---|---|
static String |
RELOAD_DELAY |
static String |
RESOURCE_URI |
COMP_REPO_BIND
Modifier and Type | Method and Description |
---|---|
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() |
Set<ConfigItem> |
getItemsForComponent(String compName)
Get set of config items stored for component
|
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)
Deprecated.
|
void |
putProperties(String compName,
Map<String,Object> props)
Deprecated.
|
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.
|
addItem, addItemNoStore, addRepoChangeListener, allItems, contains, destroy, getDefaults, getItem, getItemInstance, reload, removeItem, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setProperties, size, store, validateItem
forEach, iterator, spliterator
initRepository
static final String RELOAD_DELAY
static final String RESOURCE_URI
@Deprecated Map<String,Object> getProperties(String compName) throws ConfigurationException
ConfigurationException
Set<ConfigItem> getItemsForComponent(String compName)
compName
- @Deprecated void putProperties(String compName, Map<String,Object> props) throws ConfigurationException
ConfigurationException
Object get(String compName, String node, String key, Object def)
void set(String compName, String node, String key, Object value)
String[] getCompNames()
String[] getKeys(String compName, String node)
void remove(String compName, String node, String key)
void addItem(String key, Object value) throws ConfigurationException
ConfigurationException
void setDefHostname(String hostname)
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.