@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)
MaintenanceManager
Triggers 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 MaintenanceManager
quickCheck
- true
if only quick checks should be performedpublic void synchronizeAllIndices()
MaintenanceManager
Resynchronizes all elasticsearch indices.
The resynchronization will be run in the background as it may take some time.
synchronizeAllIndices
in interface MaintenanceManager
public void synchronizeIndex(String index)
MaintenanceManager
Resynchronizes a specific elasticsearch index.
The resynchronization will be run in the background as it may take some time.
synchronizeIndex
in interface MaintenanceManager
public Collection<CacheStatistics> getCacheStatistics()
MaintenanceManager
Returns the CacheStatistics
of all Spring based caches.
getCacheStatistics
in interface MaintenanceManager
CacheStatistics
of all Spring based cachespublic void clearCaches(String... cacheNames)
MaintenanceManager
Clears the given caches or all caches if the cacheNames
parameter is not set.
clearCaches
in interface MaintenanceManager
cacheNames
- the name of the caches to clear or empty to clear all cachesCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.