Package tigase.mongodb.cluster
Class ClConMongoRepository
java.lang.Object
tigase.db.comp.ConfigRepository<tigase.cluster.repo.ClusterRepoItem>
tigase.cluster.repo.ClConConfigRepository
tigase.mongodb.cluster.ClConMongoRepository
- All Implemented Interfaces:
Iterable<tigase.cluster.repo.ClusterRepoItem>,tigase.cluster.repo.ClusterRepoConstants,tigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>,tigase.db.comp.ComponentRepositoryDataSourceAware<tigase.cluster.repo.ClusterRepoItem,,MongoDataSource> tigase.db.DataSourceAware<MongoDataSource>,tigase.db.Repository,tigase.kernel.beans.Initializable,tigase.kernel.beans.UnregisterAware,tigase.sys.ShutdownHook
public class ClConMongoRepository
extends tigase.cluster.repo.ClConConfigRepository
implements tigase.cluster.repo.ClusterRepoConstants, tigase.db.comp.ComponentRepositoryDataSourceAware<tigase.cluster.repo.ClusterRepoItem,MongoDataSource>
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.db.Repository
tigase.db.Repository.Meta, tigase.db.Repository.SchemaId -
Field Summary
Fields inherited from class tigase.cluster.repo.ClConConfigRepository
auto_remove_obsolete_items, firstLoadDone, lastReloadTime, lastReloadTimeFactorFields inherited from class tigase.db.comp.ConfigRepository
autoReloadInterval, items, itemsHashFields inherited from interface tigase.cluster.repo.ClusterRepoConstants
CPU_USAGE_COLUMN, HOSTNAME_COLUMN, LASTUPDATE_COLUMN, MEM_USAGE_COLUMN, PASSWORD_COLUMN, PORT_COLUMN, REPO_URI_PROP_KEY, SECONDARY_HOSTNAME_COLUMN, TABLE_NAMEFields inherited from interface tigase.db.comp.ComponentRepository
COMP_REPO_BIND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()tigase.mongodb.cluster.ClConMongoRepository.ClusterRepoItemvoidinitRepository(String resource_uri, Map<String, String> params) Deprecated.voidreload()voidremoveItem(String key) voidsetDataSource(MongoDataSource dataSource) voidstore()voidstoreItem(tigase.cluster.repo.ClusterRepoItem item) Methods inherited from class tigase.cluster.repo.ClConConfigRepository
beforeUnregister, getConfigKey, getDefaultPropetyItems, getName, getPropertyKey, initialize, itemChanged, itemLoaded, removeObsoloteItems, shutdownMethods inherited from class tigase.db.comp.ConfigRepository
addItem, addItemNoStore, addRepoChangeListener, allItems, contains, getDefaultItems, getDefaults, getItem, getItemsOld, initItemsMap, isInitialized, iterator, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setAutoReloadInterval, setItemsOld, setProperties, size, toString, validateItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tigase.db.comp.ComponentRepository
addItem, addItemNoStore, addRepoChangeListener, allItems, contains, getDefaults, getItem, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setProperties, size, validateItemMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
ClConMongoRepository
public ClConMongoRepository()
-
-
Method Details
-
destroy
public void destroy()- Specified by:
destroyin interfacetigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>- Overrides:
destroyin classtigase.cluster.repo.ClConConfigRepository
-
getItemInstance
public tigase.mongodb.cluster.ClConMongoRepository.ClusterRepoItem getItemInstance()- Specified by:
getItemInstancein interfacetigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>- Overrides:
getItemInstancein classtigase.cluster.repo.ClConConfigRepository
-
initRepository
@Deprecated public void initRepository(String resource_uri, Map<String, String> params) throws tigase.db.DBInitExceptionDeprecated.- Specified by:
initRepositoryin interfacetigase.db.Repository- Overrides:
initRepositoryin classtigase.cluster.repo.ClConConfigRepository- Throws:
tigase.db.DBInitException
-
reload
public void reload()- Specified by:
reloadin interfacetigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>- Overrides:
reloadin classtigase.cluster.repo.ClConConfigRepository
-
removeItem
- Specified by:
removeItemin interfacetigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>- Overrides:
removeItemin classtigase.db.comp.ConfigRepository<tigase.cluster.repo.ClusterRepoItem>
-
setDataSource
- Specified by:
setDataSourcein interfacetigase.db.DataSourceAware<MongoDataSource>
-
store
public void store()- Specified by:
storein interfacetigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>- Overrides:
storein classtigase.db.comp.ConfigRepository<tigase.cluster.repo.ClusterRepoItem>
-
storeItem
public void storeItem(tigase.cluster.repo.ClusterRepoItem item) - Overrides:
storeItemin classtigase.cluster.repo.ClConConfigRepository
-