Class LeaderCommand

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

    @ThreadSafe
    @PublicApi
    @Deprecated
    public final class LeaderCommand
    extends AbstractFileSystemCommand
    Deprecated.
    This command will be deprecated as of v3.0, use MasterInfoCommand
    Prints the current leader master host name.
    • Constructor Detail

      • LeaderCommand

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

      • getCommandName

        public java.lang.String getCommandName()
        Deprecated.
      • validateArgs

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

        public int run​(org.apache.commons.cli.CommandLine cl)
        Deprecated.
      • getUsage

        public java.lang.String getUsage()
        Deprecated.
      • getDescription

        public java.lang.String getDescription()
        Deprecated.