Package alluxio.cli

Interface ValidationTool


  • public interface ValidationTool
    The validation tool interface.
    • 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 the runAllTests() 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