@Deprecated public class ConfigSQLRepository extends ConfigurationCache
Repository.Meta, Repository.SchemaId| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_REPO_URI_INIT_KEY
Deprecated.
|
static String |
CONFIG_REPO_URI_PROP_KEY
Deprecated.
|
CONFIG_DUMP_FILE_PROP_DEF, CONFIG_DUMP_FILE_PROP_KEYRELOAD_DELAY, RESOURCE_URICOMP_REPO_BIND| Constructor and Description |
|---|
ConfigSQLRepository()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(String compName,
ConfigItem item)
Deprecated.
|
Collection<ConfigItem> |
allItems()
Deprecated.
Returns a collection with all items stored in the repository.
|
String[] |
getCompNames()
Deprecated.
Returns all component names for which there are some configuration settings available.
|
ConfigItem |
getItem(String compName,
String node,
String key)
Deprecated.
|
Set<ConfigItem> |
getItemsForComponent(String compName)
Deprecated.
Get set of config items stored for component
|
String[] |
getKeys(String compName,
String node)
Deprecated.
Returns an array of all configuration keys for a given component and configuration node.
|
void |
initRepository(String repo_uri,
Map<String,String> params)
Deprecated.
Method is deprecated and should not be user any more.
|
void |
removeItem(String compName,
ConfigItem item)
Deprecated.
|
int |
size()
Deprecated.
The method returns number of items in the repository.
|
addItem, addItem, addItemNoStore, addRepoChangeListener, contains, destroy, get, getDefaults, getDefHostname, getInitProperties, getItem, getItemInstance, getProperties, iterator, putProperties, reload, remove, removeItem, removeItemNoStore, removeRepoChangeListener, set, setAutoloadTimer, setDefHostname, setProperties, store, validateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String CONFIG_REPO_URI_PROP_KEY
public static final String CONFIG_REPO_URI_INIT_KEY
public void addItem(String compName, ConfigItem item)
addItem in class ConfigurationCachepublic Collection<ConfigItem> allItems() throws TigaseDBException
ComponentRepositoryallItems in interface ComponentRepository<ConfigItem>allItems in class ConfigurationCacheTigaseDBExceptionpublic String[] getCompNames()
ConfigRepositoryIfcgetCompNames in interface ConfigRepositoryIfcgetCompNames in class ConfigurationCachepublic ConfigItem getItem(String compName, String node, String key)
getItem in class ConfigurationCachepublic Set<ConfigItem> getItemsForComponent(String compName)
ConfigRepositoryIfcgetItemsForComponent in interface ConfigRepositoryIfcgetItemsForComponent in class ConfigurationCachepublic String[] getKeys(String compName, String node)
ConfigRepositoryIfcgetKeys in interface ConfigRepositoryIfcgetKeys in class ConfigurationCachepublic void initRepository(String repo_uri, Map<String,String> params) throws DBInitException
Repositoryresource_uri parameter as the database connection string or via
params map if the required repository parameters are more complex or both.initRepository in interface RepositoryinitRepository in class ConfigurationCacherepo_uri - value in most cases representing the database connection string.params - is a Map with repository properties necessary to initialize and perform all the
functions. The initialization parameters are implementation dependent.DBInitException - if there was an error during repository initialization. Some implementations,
though, perform so called lazy initialization so even though there is a problem with the underlying repository it
may not be signaled through this method call.public void removeItem(String compName, ConfigItem item)
removeItem in class ConfigurationCachepublic int size()
ComponentRepositorysize in interface ComponentRepository<ConfigItem>size in class ConfigurationCacheint value with number of items in the repository.Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.