public class ClConSQLRepository extends ClConConfigRepository implements ClusterRepoConstants, ComponentRepositoryDataSourceAware<ClusterRepoItem,DataRepository>, RepositoryVersionAware
Repository.Meta, Repository.SchemaIdRepositoryVersionAware.SchemaVersionauto_remove_obsolete_items, firstLoadDone, lastReloadTime, lastReloadTimeFactorautoReloadInterval, items, itemsHashCPU_USAGE_COLUMN, HOSTNAME_COLUMN, LASTUPDATE_COLUMN, MEM_USAGE_COLUMN, PASSWORD_COLUMN, PORT_COLUMN, REPO_URI_PROP_KEY, SECONDARY_HOSTNAME_COLUMN, TABLE_NAMECOMP_REPO_BIND| Constructor and Description |
|---|
ClConSQLRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Method destroys this instance of ComponentRepository releasing resources allocated for this instance of
ComponentRepository if possible
|
void |
getDefaults(Map<String,Object> defs,
Map<String,Object> params)
Deprecated.
|
void |
initRepository(String conn_str,
Map<String,String> params)
Deprecated.
|
void |
reload()
This method is called to reload items from the database or other permanent storage.
|
void |
removeItem(String key)
The method is called to remove given Item from the memory cache and permanent storage.
|
void |
setDataSource(DataRepository data_repo)
Method called to provide class with instance of a data source.
|
void |
setProperties(Map<String,Object> properties)
Deprecated.
|
void |
store()
The method is called to store all data in the database.
|
void |
storeItem(ClusterRepoItem item) |
beforeUnregister, getConfigKey, getDefaultPropetyItems, getItemInstance, getName, getPropertyKey, initialize, itemChanged, itemLoaded, removeObsoloteItems, shutdownaddItem, addItemNoStore, addRepoChangeListener, allItems, contains, getDefaultItems, getItem, getItemsOld, initItemsMap, isInitialized, iterator, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setAutoReloadInterval, setItemsOld, size, toString, validateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItem, addItemNoStore, addRepoChangeListener, allItems, contains, getItem, getItemInstance, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, size, validateItemforEach, iterator, spliteratorgetVersion, updateSchemapublic void destroy()
ComponentRepositorydestroy in interface ComponentRepository<ClusterRepoItem>destroy in class ClConConfigRepository@Deprecated public void getDefaults(Map<String,Object> defs, Map<String,Object> params)
ComponentRepositorygetDefaults in interface ComponentRepository<ClusterRepoItem>getDefaults in class ConfigRepository<ClusterRepoItem>defs - is a Map collection where all repository configuration defaults must be put.params - is a Map collection with some preset properties for the server. These settings can be
used to adjust repository defaults, for example they can contain database connection URL or initial list of
virtual domains.public void setDataSource(DataRepository data_repo)
DataSourceAwaresetDataSource in interface DataSourceAware<DataRepository>@Deprecated public void initRepository(String conn_str, 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 ClConConfigRepositoryconn_str - 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 key)
ComponentRepositoryremoveItem in interface ComponentRepository<ClusterRepoItem>removeItem in class ConfigRepository<ClusterRepoItem>key - a String with domain name to remove.public void storeItem(ClusterRepoItem item)
storeItem in class ClConConfigRepositorypublic void reload()
ComponentRepositoryreload in interface ComponentRepository<ClusterRepoItem>reload in class ClConConfigRepository@Deprecated public void setProperties(Map<String,Object> properties)
ComponentRepositorysetProperties in interface ComponentRepository<ClusterRepoItem>setProperties in class ConfigRepository<ClusterRepoItem>properties - a Map with configuration settings. Content of this Map must not be
modified. This read-only collection.public void store()
ComponentRepositorystore in interface ComponentRepository<ClusterRepoItem>store in class ConfigRepository<ClusterRepoItem>Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.