Package alluxio.cli

Class ValidateEnv


  • public final class ValidateEnv
    extends java.lang.Object
    Utility for checking Alluxio environment.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidateEnv​(java.lang.String path, alluxio.conf.AlluxioConfiguration conf)
      Initializes from the target UFS path and configurations.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getDescription()
      Gets the task descriptions.
      java.util.Map<alluxio.cli.ValidationTask,​java.lang.String> getTasks()
      Get the tasks registered.
      static void main​(java.lang.String[] args)
      Validates Alluxio environment.
      static void printHelp​(java.lang.String message)
      Prints the help message.
      static int validate​(java.lang.String... argv)
      Validates environment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValidateEnv

        public ValidateEnv​(java.lang.String path,
                           alluxio.conf.AlluxioConfiguration conf)
        Initializes from the target UFS path and configurations.
        Parameters:
        path - the UFS path
        conf - the UFS configurtions
    • Method Detail

      • getTasks

        public java.util.Map<alluxio.cli.ValidationTask,​java.lang.String> getTasks()
        Get the tasks registered.
        Returns:
        a map of tasks mapping to their name
      • getDescription

        public java.util.Map<java.lang.String,​java.lang.String> getDescription()
        Gets the task descriptions.
        Returns:
        a map of task names mapping to their descriptions
      • printHelp

        public static void printHelp​(java.lang.String message)
        Prints the help message.
        Parameters:
        message - message before standard usage information
      • validate

        public static int validate​(java.lang.String... argv)
                            throws java.lang.InterruptedException
        Validates environment.
        Parameters:
        argv - list of arguments
        Returns:
        0 on success, -1 on validation failures, -2 on invalid arguments
        Throws:
        java.lang.InterruptedException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.InterruptedException
        Validates Alluxio environment.
        Parameters:
        args - the arguments to specify which validation tasks to run
        Throws:
        java.lang.InterruptedException