Class QuorumElectCommand

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

    public class QuorumElectCommand
    extends AbstractFsAdminCommand
    Command for transferring the leadership to another master within a quorum.
    • Constructor Detail

      • QuorumElectCommand

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

      • description

        public static java.lang.String description()
        Returns:
        command's description
      • run

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

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

        public java.lang.String getCommandName()
      • getUsage

        public java.lang.String getUsage()
      • getDescription

        public java.lang.String getDescription()
      • getOptions

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