Class BackupCommand

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

    @PublicApi
    public class BackupCommand
    extends AbstractFsAdminCommand
    Command for backing up Alluxio master metadata.
    • Constructor Detail

      • BackupCommand

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

      • getCommandName

        public java.lang.String getCommandName()
      • getOptions

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

        public int run​(org.apache.commons.cli.CommandLine cl)
                throws java.io.IOException
        Throws:
        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