Package tigase.conf
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 tigase.db.Repository
Repository.Meta, Repository.SchemaId
-
Field Summary
Fields inherited from interface tigase.db.comp.ComponentRepository
COMP_REPO_BIND
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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.void
putProperties
(String compName, Map<String, Object> props) Deprecated.void
Removes a configuration setting from the configuration repository.void
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, addItemNoStore, addRepoChangeListener, allItems, contains, destroy, getDefaults, getItem, getItemInstance, reload, removeItem, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setProperties, size, store, validateItem
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface tigase.db.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
Returns a configuration setting for a given component, node and key. If the configuration parameters is not found, returns given default value.- Returns:
- value
-
set
Puts/sets/adds/updates a configuration setting to the configuration repository. -
getCompNames
String[] getCompNames()Returns all component names for which there are some configuration settings available.- Returns:
- array of component names
-
getKeys
Returns an array of all configuration keys for a given component and configuration node.- Returns:
- array of keys for component and node
-
remove
Removes a configuration setting from the configuration repository. -
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
-