Class DoctorCommand

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

    @PublicApi
    public final class DoctorCommand
    extends AbstractFsAdminCommand
    Shows errors or warnings that users should pay attention to.
    • Field Detail

      • HELP_OPTION_NAME

        public static final java.lang.String HELP_OPTION_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • DoctorCommand

        public DoctorCommand​(Context context,
                             alluxio.conf.AlluxioConfiguration alluxioConf)
        Parameters:
        context - fsadmin command context
        alluxioConf - Alluxio configuration
    • Method Detail

      • getCommandName

        public java.lang.String getCommandName()
      • run

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

        public java.lang.String getUsage()
      • usage

        public static java.lang.String usage()
        Returns:
        the usage for the doctor command
      • getDescription

        public java.lang.String getDescription()
      • description

        public static java.lang.String description()
        Returns:
        the description for the doctor command
      • getOptions

        public org.apache.commons.cli.Options getOptions()
      • validateArgs

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