public class ClConConfigRepository extends ConfigRepository<ClusterRepoItem>
Repository.Meta
Modifier and Type | Field and Description |
---|---|
static String |
AUTORELOAD_INTERVAL_PROP_KEY
Field description
|
static long |
AUTORELOAD_INTERVAL_PROP_VAL
Field description
|
items, itemsHash
COMP_REPO_BIND
Constructor and Description |
---|
ClConConfigRepository() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Method destroys this instance of ComponentRepository releasing resources
allocated for this instance of ComponentRepository if possible
|
String |
getConfigKey()
Method description
|
String[] |
getDefaultPropetyItems()
Method description
|
void |
getDefaults(Map<String,Object> defs,
Map<String,Object> params)
Method description
|
ClusterRepoItem |
getItemInstance()
Creates a new, uninitialized instance of the repository Item.
|
String |
getPropertyKey()
Method description
|
void |
initRepository(String resource_uri,
Map<String,String> params)
The method is called to initialize the data repository.
|
boolean |
itemChanged(ClusterRepoItem oldItem,
ClusterRepoItem newItem)
Method description
|
void |
itemLoaded(ClusterRepoItem item) |
void |
reload()
Method description
|
void |
setProperties(Map<String,Object> props)
Method description
|
void |
storeItem(ClusterRepoItem item) |
addItem, addItemNoStore, addRepoChangeListener, allItems, contains, getItem, initItemsMap, iterator, removeItem, removeRepoChangeListener, setAutoloadTimer, size, store, toString, validateItem
public static final String AUTORELOAD_INTERVAL_PROP_KEY
public static final long AUTORELOAD_INTERVAL_PROP_VAL
public void destroy()
ComponentRepository
public String[] getDefaultPropetyItems()
ConfigRepository
getDefaultPropetyItems
in class ConfigRepository<ClusterRepoItem>
public String getPropertyKey()
ConfigRepository
getPropertyKey
in class ConfigRepository<ClusterRepoItem>
public String getConfigKey()
ConfigRepository
getConfigKey
in class ConfigRepository<ClusterRepoItem>
public ClusterRepoItem getItemInstance()
ComponentRepository
public void initRepository(String resource_uri, Map<String,String> params) throws DBInitException
Repository
resource_uri
parameter as the database connection string or via params
map if
the required repository parameters are more complex or both.resource_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 reload()
ConfigRepository
reload
in interface ComponentRepository<ClusterRepoItem>
reload
in class ConfigRepository<ClusterRepoItem>
public void itemLoaded(ClusterRepoItem item)
public boolean itemChanged(ClusterRepoItem oldItem, ClusterRepoItem newItem)
ConfigRepository
itemChanged
in class ConfigRepository<ClusterRepoItem>
public void getDefaults(Map<String,Object> defs, Map<String,Object> params)
ConfigRepository
getDefaults
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 setProperties(Map<String,Object> props)
ConfigRepository
setProperties
in interface ComponentRepository<ClusterRepoItem>
setProperties
in class ConfigRepository<ClusterRepoItem>
props
- a Map
with configuration settings. Content of this
Map
must not be modified. This read-only collection.public void storeItem(ClusterRepoItem item)
Copyright © 2014 "Tigase, Inc.". All rights reserved.