Interface ConfigRepositoryIfc
- All Superinterfaces:
ComponentRepository<ConfigItem>, Iterable<ConfigItem>, Repository
- All Known Implementing Classes:
ConfigSQLRepository, ConfigurationCache, ConfigXMLRepository
Created: Dec 10, 2009 2:04:20 PM
- Author:
- Artur Hefczyc
-
Nested Class Summary
Nested classes/interfaces inherited from interface Repository
Repository.Meta, Repository.SchemaId -
Field Summary
FieldsFields inherited from interface ComponentRepository
COMP_REPO_BIND -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod adds an Item to the configuration repository where the key is the item key constructed of component name, node name and property key name.Returns a configuration setting for a given component, node and key.String[]Returns all component names for which there are some configuration settings available.getItemsForComponent(String compName) Get set of config items stored for componentString[]Returns an array of all configuration keys for a given component and configuration node.getProperties(String compName) Deprecated.voidputProperties(String compName, Map<String, Object> props) Deprecated.voidRemoves a configuration setting from the configuration repository.voidPuts/sets/adds/updates a configuration setting to the configuration repository.voidsetDefHostname(String hostname) This is used to load a configuration for a selected cluster node.Methods inherited from interface ComponentRepository
addItem, addItemNoStore, addRepoChangeListener, allItems, contains, destroy, getDefaults, getItem, getItemInstance, reload, removeItem, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setProperties, size, store, validateItemMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface Repository
initRepository
-
Field Details
-
RELOAD_DELAY
- See Also:
-
RESOURCE_URI
- See Also:
-
-
Method Details
-
getProperties
Deprecated.Returns all known settings for the given component name.- Returns:
- map with configuration
- Throws:
ConfigurationException
-
getItemsForComponent
Get set of config items stored for component- Returns:
- set of component items
-
putProperties
@Deprecated void putProperties(String compName, Map<String, Object> props) throws ConfigurationExceptionDeprecated.Sets/adds properties for the given component name.- Throws:
ConfigurationException
-
get
-
set
-
getCompNames
String[] getCompNames()Returns all component names for which there are some configuration settings available.- Returns:
- array of component names
-
getKeys
-
remove
-
addItem
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.- Throws:
ConfigurationException
-
setDefHostname
This is used to load a configuration for a selected cluster node. The configuration repository (file or database) may contain settings for all cluster nodes, some of the settings may be exclusive to one or another cluster node. This method informs the repository what node name (hostname) it is running on. -
getInitProperties
-