Package alluxio.cli
Interface ValidationTool
-
public interface ValidationTool
The validation tool interface.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ValidationResults
convertResults(java.util.List<ValidationTaskResult> results)
Converts the results of therunAllTests()
method into a map for digestion by other components.java.util.Map<java.lang.String,ValidationTask>
getTasks()
java.util.List<ValidationTaskResult>
runAllTests()
Runs validation tests.static java.lang.String
toJson(ValidationResults map)
Convert to Json format of the validation result.
-
-
-
Method Detail
-
getTasks
java.util.Map<java.lang.String,ValidationTask> getTasks()
- Returns:
- a mapping of task names to tasks that this tool can run
-
runAllTests
java.util.List<ValidationTaskResult> runAllTests() throws java.lang.InterruptedException
Runs validation tests.- Returns:
- a json string of the test results
- Throws:
java.lang.InterruptedException
-
convertResults
static ValidationResults convertResults(java.util.List<ValidationTaskResult> results)
Converts the results of therunAllTests()
method into a map for digestion by other components.- Parameters:
results
- a result from a validation tool- Returns:
- a map representing the result input
-
toJson
static java.lang.String toJson(ValidationResults map)
Convert to Json format of the validation result.- Parameters:
map
- result stored in a map- Returns:
- a string containing json representation of the result
-
-