Class AdminController

java.lang.Object
eu.dnetlib.app.directindex.controllers.AdminController

@RestController @RequestMapping("/api/admin") public class AdminController extends Object
  • Constructor Details

    • AdminController

      public AdminController()
  • Method Details

    • info

      @GetMapping("/info") public Map<String,?> info()
    • evictCaches

      @DeleteMapping("/other-caches") @ResponseStatus(OK) public void evictCaches()
    • updateScheduling

      @GetMapping("/scheduling/{enabled}") @ResponseStatus(OK) public void updateScheduling(@PathVariable boolean enabled)
    • resetExecutions

      @GetMapping("/resetExecutions/all") @ResponseStatus(OK) public void resetExecutions()
    • resetExecutions

      @GetMapping("/resetExecutions/byCriteria") @ResponseStatus(OK) public void resetExecutions(@RequestParam long byTimestampAfter, @RequestParam String collectedFromId, @RequestParam(required=false) String type)
    • resetExecutions

      @GetMapping("/resetExecutions/byId") @ResponseStatus(OK) public void resetExecutions(@RequestParam String id)
    • deleteExpiredRecordsByDateBefore

      @DeleteMapping("/records-cache/byDateBefore") @ResponseStatus(OK) public void deleteExpiredRecordsByDateBefore(@RequestParam long timestamp)
    • deleteExpiredRecords

      @DeleteMapping("/records-cache/all") @ResponseStatus(OK) public void deleteExpiredRecords()
    • deleteExpiredRecordsById

      @DeleteMapping("/records-cache/byId") @ResponseStatus(OK) public void deleteExpiredRecordsById(@RequestParam String id)