@ConfigAliases(value=@ConfigAlias(field="items",alias="cluster-nodes")) public class ClConConfigRepository extends ConfigRepository<ClusterRepoItem> implements ShutdownHook, Initializable, UnregisterAware
Repository.Meta, Repository.SchemaId| Modifier and Type | Field and Description |
|---|---|
protected boolean |
auto_remove_obsolete_items |
protected boolean |
firstLoadDone |
protected long |
lastReloadTime |
protected long |
lastReloadTimeFactor |
autoReloadInterval, items, itemsHashCOMP_REPO_BIND| Constructor and Description |
|---|
ClConConfigRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeUnregister()
Method called before bean unregister.
|
void |
destroy()
Method destroys this instance of ComponentRepository releasing resources allocated for this instance of
ComponentRepository if possible
|
String |
getConfigKey() |
String[] |
getDefaultPropetyItems() |
ClusterRepoItem |
getItemInstance()
Creates a new, uninitialized instance of the repository Item.
|
String |
getName() |
String |
getPropertyKey() |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
void |
initRepository(String resource_uri,
Map<String,String> params)
Deprecated.
|
boolean |
itemChanged(ClusterRepoItem oldItem,
ClusterRepoItem newItem) |
void |
itemLoaded(ClusterRepoItem item) |
void |
reload()
This method is called to reload items from the database or other permanent storage.
|
protected void |
removeObsoloteItems(long factor) |
String |
shutdown() |
void |
storeItem(ClusterRepoItem item) |
addItem, addItemNoStore, addRepoChangeListener, allItems, contains, getDefaultItems, getDefaults, getItem, getItemsOld, initItemsMap, isInitialized, iterator, removeItem, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setAutoReloadInterval, setItemsOld, setProperties, size, store, toString, validateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliterator@ConfigField(desc="Automatically remove obsolote items", alias="repo-auto-remove-obsolete-items") protected boolean auto_remove_obsolete_items
protected boolean firstLoadDone
protected long lastReloadTime
protected long lastReloadTimeFactor
public void destroy()
ComponentRepositorydestroy in interface ComponentRepository<ClusterRepoItem>public String[] getDefaultPropetyItems()
getDefaultPropetyItems in class ConfigRepository<ClusterRepoItem>public String getName()
getName in interface ShutdownHookpublic String getPropertyKey()
getPropertyKey in class ConfigRepository<ClusterRepoItem>public String getConfigKey()
getConfigKey in class ConfigRepository<ClusterRepoItem>public ClusterRepoItem getItemInstance()
ComponentRepositorygetItemInstance in interface ComponentRepository<ClusterRepoItem>@Deprecated public void initRepository(String resource_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 Repositoryresource_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()
ComponentRepositoryreload in interface ComponentRepository<ClusterRepoItem>reload in class ConfigRepository<ClusterRepoItem>public void itemLoaded(ClusterRepoItem item)
public boolean itemChanged(ClusterRepoItem oldItem, ClusterRepoItem newItem)
itemChanged in class ConfigRepository<ClusterRepoItem>public String shutdown()
shutdown in interface ShutdownHookpublic void storeItem(ClusterRepoItem item)
public void initialize()
Initializableinitialize in interface Initializableinitialize in class ConfigRepository<ClusterRepoItem>public void beforeUnregister()
UnregisterAwarebeforeUnregister in interface UnregisterAwarebeforeUnregister in class ConfigRepository<ClusterRepoItem>protected void removeObsoloteItems(long factor)
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.