Class HelpCommand

  • All Implemented Interfaces:
    alluxio.cli.Command, java.io.Closeable, java.lang.AutoCloseable

    @ThreadSafe
    @PublicApi
    public final class HelpCommand
    extends AbstractFileSystemCommand
    Command for print help message for the given command. If there isn't given command, print help messages for all supported commands.
    • Constructor Detail

      • HelpCommand

        public HelpCommand​(alluxio.client.file.FileSystemContext fsContext)
        Parameters:
        fsContext - the filesystem of Alluxio
    • Method Detail

      • printCommandInfo

        public static void printCommandInfo​(alluxio.cli.Command command,
                                            java.io.PrintWriter pw)
        Prints the info about a command to the given print writer.
        Parameters:
        command - command to print info
        pw - where to print the info
      • getCommandName

        public java.lang.String getCommandName()
      • run

        public int run​(org.apache.commons.cli.CommandLine cl)
                throws alluxio.exception.AlluxioException,
                       java.io.IOException
        Throws:
        alluxio.exception.AlluxioException
        java.io.IOException
      • getUsage

        public java.lang.String getUsage()
      • getDescription

        public java.lang.String getDescription()
      • validateArgs

        public void validateArgs​(org.apache.commons.cli.CommandLine cl)
                          throws alluxio.exception.status.InvalidArgumentException
        Throws:
        alluxio.exception.status.InvalidArgumentException