@Manager public class DefaultMaintenanceManager extends Object implements MaintenanceManager
| Constructor and Description |
|---|
DefaultMaintenanceManager(DataConsistencyService dataConsistencyService,
DatabaseSchemaService databaseSchemaService,
UserManager userManager,
BackgroundTaskService backgroundTaskService,
OneElasticIndexService elasticIndexService,
StatisticsAwareCache statisticsAwareCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCaches(String... cacheNames)
Clears the given caches or all caches if the
cacheNames parameter is not set. |
Collection<CacheStatistics> |
getCacheStatistics()
Returns the
CacheStatistics of all Spring based caches. |
void |
runDataConsistencyCheck(boolean quickCheck)
Triggers a full data consistency check on the system.
|
void |
synchronizeAllIndices()
Resynchronizes all elasticsearch indices.
|
void |
synchronizeIndex(String index)
Resynchronizes a specific elasticsearch index.
|
@Autowired public DefaultMaintenanceManager(DataConsistencyService dataConsistencyService, DatabaseSchemaService databaseSchemaService, UserManager userManager, BackgroundTaskService backgroundTaskService, OneElasticIndexService elasticIndexService, StatisticsAwareCache statisticsAwareCache)
public void runDataConsistencyCheck(boolean quickCheck)
MaintenanceManagerTriggers a full data consistency check on the system.
The check will be run in the background as it may take some time, and the results will appear in the application log.
runDataConsistencyCheck in interface MaintenanceManagerquickCheck - true if only quick checks should be performedpublic void synchronizeAllIndices()
MaintenanceManagerResynchronizes all elasticsearch indices.
The resynchronization will be run in the background as it may take some time.
synchronizeAllIndices in interface MaintenanceManagerpublic void synchronizeIndex(String index)
MaintenanceManagerResynchronizes a specific elasticsearch index.
The resynchronization will be run in the background as it may take some time.
synchronizeIndex in interface MaintenanceManagerpublic Collection<CacheStatistics> getCacheStatistics()
MaintenanceManagerReturns the CacheStatistics of all Spring based caches.
getCacheStatistics in interface MaintenanceManagerCacheStatistics of all Spring based cachespublic void clearCaches(String... cacheNames)
MaintenanceManagerClears the given caches or all caches if the cacheNames parameter is not set.
clearCaches in interface MaintenanceManagercacheNames - the name of the caches to clear or empty to clear all cachesCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.