Class LeaderCommand

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

    @ThreadSafe
    @PublicApi
    public final class LeaderCommand
    extends AbstractFileSystemCommand
    Prints the current leader master host name.
    • Constructor Detail

      • LeaderCommand

        public LeaderCommand​(alluxio.client.file.FileSystemContext fsContext)
        creates the job leader command.
        Parameters:
        fsContext - the Alluxio filesystem client
    • Method Detail

      • getCommandName

        public java.lang.String getCommandName()
      • validateArgs

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

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

        public java.lang.String getUsage()
      • getDescription

        public java.lang.String getDescription()