Package com.vmware.aria.operations
Class TestResult
-
- All Implemented Interfaces:
@Serializable() public final class TestResultClass for managing the results of an Adapter Instance 'connection' test
-
-
Field Summary
Fields Modifier and Type Field Description private final JsonElementjson
-
Constructor Summary
Constructors Constructor Description TestResult()
-
Method Summary
Modifier and Type Method Description final JsonElementgetJson()final BooleanisSuccess()final TestResultwithError(String errorMessage)Set the adapter instance connection test to failed, and display the given error message. final UnitsendResults(String outputPipe)Opens the output pipe and sends result directly back to the serverThis method can only be called once per collection. final UnitsendResults()Opens the output pipe and sends result directly back to the serverThis method can only be called once per collection. -
-
Method Detail
-
getJson
final JsonElement getJson()
-
withError
final TestResult withError(String errorMessage)
Set the adapter instance connection test to failed, and display the given error message.
If this method is called multiple times, only the most recent error message will be recorded. If errorMessage is set, the test is considered failed.
- Parameters:
errorMessage- The error message to present to the user.
-
sendResults
final Unit sendResults(String outputPipe)
Opens the output pipe and sends result directly back to the server
This method can only be called once per collection.
- Parameters:
outputPipe- The path to the output pipe.
-
sendResults
final Unit sendResults()
Opens the output pipe and sends result directly back to the server
This method can only be called once per collection.
-
-
-
-