@Controller @RequestMapping(value="/api/v1/maintenance") public class MaintenanceController extends Object
Provides REST endpoints for maintenance operations.
| Constructor and Description |
|---|
MaintenanceController(MaintenanceManager maintenanceManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCacheByName(String cacheName)
Clear the specified cache
|
void |
clearCaches()
Clear all caches.
|
Collection<CacheStatistics> |
getCacheStatistics()
Gets all cache statistics.
|
void |
runDataCheck()
Triggers a data check on the edoras one database (will run in the background).
|
void |
synchronizeAllIndices()
Triggers resynchronization of all elasticsearch indices.
|
void |
synchronizeIndex(String index)
Triggers resynchronization of a specific elasticsearch index.
|
public MaintenanceController(MaintenanceManager maintenanceManager)
@ResponseBody
@RequestMapping(value="/dataCheck",
method=GET)
public void runDataCheck()
throws Exception
Triggers a data check on the edoras one database (will run in the background).
Exception@ResponseBody
@RequestMapping(value="/index/synchronizeAll",
method=GET)
public void synchronizeAllIndices()
throws Exception
Triggers resynchronization of all elasticsearch indices.
Exception@ResponseBody
@RequestMapping(value="/index/{index}/synchronize",
method=GET)
public void synchronizeIndex(@PathVariable
String index)
throws Exception
Triggers resynchronization of a specific elasticsearch index.
Exception@ResponseBody
@RequestMapping(value="/cache",
method=GET)
public Collection<CacheStatistics> getCacheStatistics()
throws Exception
Gets all cache statistics.
Exception@ResponseBody
@RequestMapping(value="/cache/clear/{cacheName}",
method=GET)
public void clearCacheByName(@PathVariable
String cacheName)
throws Exception
Clear the specified cache
ExceptionCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.