Package net.solarnetwork.central.web
Class PingController
java.lang.Object
net.solarnetwork.central.web.PingController
A web controller for running a set of
PingTest tests and returning
the results.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn overall test results class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.solarnetwork.web.jakarta.domain.Response<PingController.PingResults> executePingTest(org.springframework.ui.Model model) List<net.solarnetwork.service.PingTest> getTests()Get the ping tests.
-
Constructor Details
-
PingController
Constructor.- Parameters:
tests- the tests
-
-
Method Details
-
executePingTest
@RequestMapping(value="", method=GET, produces="application/json") @ResponseBody public net.solarnetwork.web.jakarta.domain.Response<PingController.PingResults> executePingTest() -
executePingTest
@RequestMapping(value="", method=GET, produces="text/html") public String executePingTest(org.springframework.ui.Model model) -
getTests
Get the ping tests.- Returns:
- the tests
-