Class WicaAdminPageController

java.lang.Object
ch.psi.wica.controllers.WicaAdminPageController

@ThreadSafe @Controller class WicaAdminPageController extends Object
Returns an HTML Page which provides general information together with links to the other administration pages.
  • Constructor Details

  • Method Details

    • getAdminPageAsHtml

      @GetMapping(value="/admin", produces="text/html") public String getAdminPageAsHtml(org.springframework.ui.Model viewModel)
      Returns the admin page as HTML.

      Leaves the default MVC handling for this method. This means that the returned value will be interpreted as a reference to a thymeleaf template.

      Parameters:
      viewModel - the view model.
      Returns:
      the HTML page.
    • getAllMonitoredChannels

      @GetMapping(value="/channel-monitors/all", produces="application/json") public org.springframework.http.ResponseEntity<List<String>> getAllMonitoredChannels()
      Returns a list of all channel monitors.
      Returns:
      the list.
    • getUnconnectedChannelMonitors

      @GetMapping("/channel-monitors/unconn") public org.springframework.http.ResponseEntity<List<String>> getUnconnectedChannelMonitors()
      Returns a list of unconnected channel monitors.
      Returns:
      the list.
    • getAllPolledChannels

      @GetMapping(value="/channel-pollers/all", produces="application/json") public org.springframework.http.ResponseEntity<List<String>> getAllPolledChannels()
      Returns a list of all channel pollers.
      Returns:
      the list.
    • getUnconnectedChannelPollers

      @GetMapping("/channel-pollers/unconn") public org.springframework.http.ResponseEntity<List<String>> getUnconnectedChannelPollers()
      Returns a list of unconnected channel pollers.
      Returns:
      the list.
    • resetStatistics

      @PutMapping("/statistics") public void resetStatistics()
      Resets the statistics.