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, lastReloadTimeFactor

    Fields inherited from class tigase.db.comp.ConfigRepository

    autoReloadInterval, items, itemsHash

    Fields 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_NAME

    Fields inherited from interface tigase.db.comp.ComponentRepository

    COMP_REPO_BIND
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    tigase.mongodb.cluster.ClConMongoRepository.ClusterRepoItem
     
    void
    initRepository(String resource_uri, Map<String,String> params)
    Deprecated.
    void
     
    void
     
    void
     
    void
     
    void
    storeItem(tigase.cluster.repo.ClusterRepoItem item)
     

    Methods inherited from class tigase.cluster.repo.ClConConfigRepository

    beforeUnregister, getConfigKey, getDefaultPropetyItems, getName, getPropertyKey, initialize, itemChanged, itemLoaded, removeObsoloteItems, shutdown

    Methods 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, validateItem

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface tigase.db.comp.ComponentRepository

    addItem, addItemNoStore, addRepoChangeListener, allItems, contains, getDefaults, getItem, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setProperties, size, validateItem

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Constructor Details

    • ClConMongoRepository

      public ClConMongoRepository()
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface tigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>
      Overrides:
      destroy in class tigase.cluster.repo.ClConConfigRepository
    • getItemInstance

      public tigase.mongodb.cluster.ClConMongoRepository.ClusterRepoItem getItemInstance()
      Specified by:
      getItemInstance in interface tigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>
      Overrides:
      getItemInstance in class tigase.cluster.repo.ClConConfigRepository
    • initRepository

      @Deprecated public void initRepository(String resource_uri, Map<String,String> params) throws tigase.db.DBInitException
      Deprecated.
      Specified by:
      initRepository in interface tigase.db.Repository
      Overrides:
      initRepository in class tigase.cluster.repo.ClConConfigRepository
      Throws:
      tigase.db.DBInitException
    • reload

      public void reload()
      Specified by:
      reload in interface tigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>
      Overrides:
      reload in class tigase.cluster.repo.ClConConfigRepository
    • removeItem

      public void removeItem(String key)
      Specified by:
      removeItem in interface tigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>
      Overrides:
      removeItem in class tigase.db.comp.ConfigRepository<tigase.cluster.repo.ClusterRepoItem>
    • setDataSource

      public void setDataSource(MongoDataSource dataSource)
      Specified by:
      setDataSource in interface tigase.db.DataSourceAware<MongoDataSource>
    • store

      public void store()
      Specified by:
      store in interface tigase.db.comp.ComponentRepository<tigase.cluster.repo.ClusterRepoItem>
      Overrides:
      store in class tigase.db.comp.ConfigRepository<tigase.cluster.repo.ClusterRepoItem>
    • storeItem

      public void storeItem(tigase.cluster.repo.ClusterRepoItem item)
      Overrides:
      storeItem in class tigase.cluster.repo.ClConConfigRepository