Package net.solarnetwork.central.web
Class PingController.PingResults
java.lang.Object
net.solarnetwork.central.web.PingController.PingResults
- Enclosing class:
PingController
An overall test results class.
-
Constructor Summary
ConstructorsConstructorDescriptionPingResults(Instant date, Map<String, net.solarnetwork.service.PingTestResultDisplay> results) Construct with values. -
Method Summary
Modifier and TypeMethodDescriptiongetDate()Get the date the tests were executed.Get a map of test ID to test results.booleanReturn true if there are test results available and all the results return true forPingTestResult.isSuccess().
-
Constructor Details
-
Method Details
-
getResults
Get a map of test ID to test results.- Returns:
- All test results.
-
getDate
Get the date the tests were executed.- Returns:
- The date.
-
isAllGood
public boolean isAllGood()Return true if there are test results available and all the results return true forPingTestResult.isSuccess().- Returns:
- Boolean flag.
-