Package net.solarnetwork.service
Class PingTestResult
java.lang.Object
net.solarnetwork.service.PingTestResult
- All Implemented Interfaces:
PingTest.Result
- Direct Known Subclasses:
PingTestResultDisplay
A results object for a single
PingTest result.- Since:
- 1.52
- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionPingTestResult(boolean success, String message) Construct with status flag and message.PingTestResult(boolean success, String message, Map<String, ?> properties) Construct values. -
Method Summary
Modifier and TypeMethodDescriptionGet a descriptive messageGet optional properties related to the test.booleanTest if the test was successful.
-
Constructor Details
-
PingTestResult
Construct values.- Parameters:
success- The success flag.message- The message.properties- Optional properties.
-
PingTestResult
Construct with status flag and message.- Parameters:
success- The success flag.message- The message.
-
-
Method Details
-
getMessage
Description copied from interface:PingTest.ResultGet a descriptive message- Specified by:
getMessagein interfacePingTest.Result- Returns:
- the message
-
isSuccess
public boolean isSuccess()Description copied from interface:PingTest.ResultTest if the test was successful.- Specified by:
isSuccessin interfacePingTest.Result- Returns:
- true if the test is successful (passed), false otherwise
-
getProperties
Description copied from interface:PingTest.ResultGet optional properties related to the test.- Specified by:
getPropertiesin interfacePingTest.Result- Returns:
- optional test properties
-