Package ch.psi.wica.controllers
Class WicaAdminPageController
java.lang.Object
ch.psi.wica.controllers.WicaAdminPageController
Returns an HTML Page which provides general information together with links
to the other administration pages.
-
Constructor Summary
ConstructorsConstructorDescriptionWicaAdminPageController
(StatisticsCollectionService statisticsCollectionService, EpicsChannelMonitorPublisher epicsChannelMonitorPublisher, EpicsChannelPollerPublisher epicsChannelPollerPublisher, EpicsChannelManager.EpicsMonitoredChannelManagerService epicsMonitoredChannelManager, EpicsChannelManager.EpicsPolledChannelManagerService epicsPolledChannelManager) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetAdminPageAsHtml
(org.springframework.ui.Model viewModel) Returns the admin page as HTML.Returns a list of all channel monitors.Returns a list of all channel pollers.Returns a list of unconnected channel monitors.Returns a list of unconnected channel pollers.void
Resets the statistics.
-
Constructor Details
-
WicaAdminPageController
public WicaAdminPageController(@Autowired StatisticsCollectionService statisticsCollectionService, @Autowired EpicsChannelMonitorPublisher epicsChannelMonitorPublisher, @Autowired EpicsChannelPollerPublisher epicsChannelPollerPublisher, @Autowired EpicsChannelManager.EpicsMonitoredChannelManagerService epicsMonitoredChannelManager, @Autowired EpicsChannelManager.EpicsPolledChannelManagerService epicsPolledChannelManager) Constructs a new instance.- Parameters:
statisticsCollectionService
- the statistics collection service.epicsChannelMonitorPublisher
- the EPICS channel monitor publisher.epicsChannelPollerPublisher
- the EPICS channel poller publisher.epicsMonitoredChannelManager
- the EPICS monitored channel manager.epicsPolledChannelManager
- the EPICS polled channel manager.
-
-
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.
-