@Bean(name="repositoryPool", parent=WorkgroupQueuesComponent.class, active=true) public class RepoPool extends MDRepositoryBeanWithStatistics<Store> implements Store
Modifier and Type | Class and Description |
---|---|
static class |
RepoPool.MessageArchiveRepositoryConfigBean |
MDRepositoryBean.MDRepositoryConfigBean<A extends DataSourceAware>, MDRepositoryBean.SelectorType
Repository.Meta, Repository.SchemaId
aliases, dataSourceSelection
Constructor and Description |
---|
RepoPool() |
Modifier and Type | Method and Description |
---|---|
void |
addWorkgroupQueue(WorkgroupQueueEntity queue)
Add queue entity to storage.
|
void |
deleteWorkgroupQueue(BareJID queueJid) |
protected Class |
findClassForDataSource(DataSource dataSource)
Method returns class implementing repository which supports data source instance provided in parameter.
|
Class<?> |
getDefaultBeanClass()
Returns default class for all bean which are defined using configuration as subbeans of bean implementing this
interface.
|
WorkgroupQueueEntity |
getWorkgroupQueue(BareJID queueJID)
Loads queue entity from storage.
|
Collection<WorkgroupQueueEntity> |
getWorkgroupQueues()
Returns collection of known queues.
|
void |
initRepository(String resource_uri,
Map<String,String> params)
Method is deprecated and should not be user any more.
|
void |
setDataSource(DataRepository dataSource)
Method called to provide class with instance of a data source.
|
everyHour, everyMinute, everySecond, getRepositories, getRepository, getStatistics, setStatisticsEnabled, updateDataSourceAware, wrapInProxy
beforeUnregister, getName, initialize, initializeRepository, onDataSourceChange, register, registerIfNotExists, repositoriesStream, setDataSourceBean, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
belongsTo
public void addWorkgroupQueue(WorkgroupQueueEntity queue)
Store
addWorkgroupQueue
in interface Store
queue
- queue to add.public void deleteWorkgroupQueue(BareJID queueJid)
deleteWorkgroupQueue
in interface Store
public Class<?> getDefaultBeanClass()
RegistrarBeanWithDefaultBeanClass
getDefaultBeanClass
in interface RegistrarBeanWithDefaultBeanClass
public WorkgroupQueueEntity getWorkgroupQueue(BareJID queueJID)
Store
getWorkgroupQueue
in interface Store
queueJID
- JID of queue.null
if queue doesn't exists.public Collection<WorkgroupQueueEntity> getWorkgroupQueues()
Store
getWorkgroupQueues
in interface Store
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.initRepository
in interface Repository
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 setDataSource(DataRepository dataSource)
DataSourceAware
setDataSource
in interface DataSourceAware<DataRepository>
protected Class findClassForDataSource(DataSource dataSource) throws DBInitException
MDRepositoryBean
findClassForDataSource
in class MDRepositoryBean<Store>
DBInitException
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.