Package mondrian.server
Class DynamicContentFinder
java.lang.Object
mondrian.server.UrlRepositoryContentFinder
mondrian.server.DynamicContentFinder
- All Implemented Interfaces:
RepositoryContentFinder
Implementation of
RepositoryContentFinder that
periodically reloads the content of the repository.
The updates are performed by a background thread.
It is important to call shutdown()
once this object can be disposed of.
- Author:
- Thiyagu Ajit, Luc Boudreau, Julian Hyde
-
Field Summary
FieldsFields inherited from class mondrian.server.UrlRepositoryContentFinder
url -
Constructor Summary
ConstructorsConstructorDescriptionDynamicContentFinder(String dataSourcesConfigUrl) Creates a DynamicContentFinder. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareCatalogsEqual(DataSourcesConfig.DataSource dataSource1, DataSourcesConfig.Catalog catalog1, DataSourcesConfig.DataSource dataSource2, DataSourcesConfig.Catalog catalog2) static Stringdsi(DataSourcesConfig.DataSource dataSource, DataSourcesConfig.Catalog catalog) protected voidflushCatalog(String catalogName) voidflushObsoleteCatalogs(DataSourcesConfig.DataSources newDataSources) protected booleanhasDataSourcesContentChanged(String dataSourcesConfigString) voidChecks for updates to datasources content, flushes obsolete catalogs.voidshutdown()Cleans up all background updating jobs.Methods inherited from class mondrian.server.UrlRepositoryContentFinder
getContent
-
Field Details
-
lastDataSourcesConfigString
-
dataSources
-
-
Constructor Details
-
DynamicContentFinder
Creates a DynamicContentFinder.- Parameters:
dataSourcesConfigUrl- URL of repository
-
-
Method Details
-
shutdown
public void shutdown()Cleans up all background updating jobs.- Specified by:
shutdownin interfaceRepositoryContentFinder- Overrides:
shutdownin classUrlRepositoryContentFinder
-
reloadDataSources
public void reloadDataSources()Checks for updates to datasources content, flushes obsolete catalogs. -
hasDataSourcesContentChanged
-
flushObsoleteCatalogs
-
flushCatalog
-
areCatalogsEqual
public static boolean areCatalogsEqual(DataSourcesConfig.DataSource dataSource1, DataSourcesConfig.Catalog catalog1, DataSourcesConfig.DataSource dataSource2, DataSourcesConfig.Catalog catalog2) -
dsi
public static String dsi(DataSourcesConfig.DataSource dataSource, DataSourcesConfig.Catalog catalog)
-