public class ClConDirRepository extends ClConConfigRepository implements ClusterRepoConstants
Repository.Meta| Modifier and Type | Field and Description |
|---|---|
static String |
REPO_FILE_EXTENSION
Field description
|
static String |
REPO_URI_DB_DEF_VAL
Field description
|
auto_remove_obsolete_items, AUTO_REMOVE_OBSOLETE_ITEMS_PROP_KEY, autoreload_interval, AUTORELOAD_INTERVAL_PROP_KEY, AUTORELOAD_INTERVAL_PROP_VAL, firstLoadDone, lastReloadTime, lastReloadTimeFactoritems, 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 |
|---|
ClConDirRepository() |
| 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)
The method is called to obtain default configuration settings if there are
any for this repository implementation The configuration settings are
implementation dependent and there are no defaults set by the server.
|
void |
initRepository(String conn_str,
Map<String,String> params)
The method is called to initialize the data repository.
|
void |
reload()
This method is called to reload items from the database or other permanent
storage.
|
void |
setProperties(Map<String,Object> properties)
The method is called to set configuration for this repository
implementation.
|
void |
storeItem(ClusterRepoItem item) |
getConfigKey, getDefaultPropetyItems, getItemInstance, getName, getPropertyKey, itemChanged, itemLoaded, shutdownaddItem, addItemNoStore, addRepoChangeListener, allItems, contains, getItem, initItemsMap, iterator, removeItem, removeRepoChangeListener, setAutoloadTimer, size, store, toString, validateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String REPO_FILE_EXTENSION
public static final String REPO_URI_DB_DEF_VAL
public void destroy()
ComponentRepositorydestroy in interface ComponentRepository<ClusterRepoItem>destroy in class ClConConfigRepositorypublic void getDefaults(Map<String,Object> defs, Map<String,Object> params)
ComponentRepositorygetDefaults in interface ComponentRepository<ClusterRepoItem>getDefaults in class ClConConfigRepositorydefs - 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 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 setProperties(Map<String,Object> properties)
ComponentRepositorysetProperties in interface ComponentRepository<ClusterRepoItem>setProperties in class ClConConfigRepositoryproperties - a Map with configuration settings. Content of this
Map must not be modified. This read-only collection.public void storeItem(ClusterRepoItem item)
storeItem in class ClConConfigRepositorypublic void reload()
ComponentRepositoryreload in interface ComponentRepository<ClusterRepoItem>reload in class ClConConfigRepositoryCopyright © 2017 "Tigase, Inc.". All rights reserved.