public class DynamicContentFinder extends UrlRepositoryContentFinder
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.
| Modifier and Type | Field and Description | 
|---|---|
protected DataSourcesConfig.DataSources | 
dataSources  | 
protected String | 
lastDataSourcesConfigString  | 
url| Constructor and Description | 
|---|
DynamicContentFinder(String dataSourcesConfigUrl)
Creates a DynamicContentFinder. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
areCatalogsEqual(DataSourcesConfig.DataSource dataSource1,
                DataSourcesConfig.Catalog catalog1,
                DataSourcesConfig.DataSource dataSource2,
                DataSourcesConfig.Catalog catalog2)  | 
static String | 
dsi(DataSourcesConfig.DataSource dataSource,
   DataSourcesConfig.Catalog catalog)  | 
protected void | 
flushCatalog(String catalogName)  | 
void | 
flushObsoleteCatalogs(DataSourcesConfig.DataSources newDataSources)  | 
protected boolean | 
hasDataSourcesContentChanged(String dataSourcesConfigString)  | 
void | 
reloadDataSources()
Checks for updates to datasources content, flushes obsolete catalogs. 
 | 
void | 
shutdown()
Cleans up all background updating jobs. 
 | 
getContentprotected String lastDataSourcesConfigString
protected DataSourcesConfig.DataSources dataSources
public DynamicContentFinder(String dataSourcesConfigUrl)
dataSourcesConfigUrl - URL of repositorypublic void shutdown()
shutdown in interface RepositoryContentFindershutdown in class UrlRepositoryContentFinderpublic void reloadDataSources()
protected boolean hasDataSourcesContentChanged(String dataSourcesConfigString)
public void flushObsoleteCatalogs(DataSourcesConfig.DataSources newDataSources)
protected void flushCatalog(String catalogName)
public static boolean areCatalogsEqual(DataSourcesConfig.DataSource dataSource1, DataSourcesConfig.Catalog catalog1, DataSourcesConfig.DataSource dataSource2, DataSourcesConfig.Catalog catalog2)
public static String dsi(DataSourcesConfig.DataSource dataSource, DataSourcesConfig.Catalog catalog)
Copyright © 2017 Hitachi Vantara. All rights reserved.