Class QuorumInfoCommand

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

    public class QuorumInfoCommand
    extends AbstractFsAdminCommand
    Command for querying journal quorum information.
    • Field Detail

      • DOMAIN_OPTION_NAME

        public static final java.lang.String DOMAIN_OPTION_NAME
        See Also:
        Constant Field Values
      • OUTPUT_HEADER_DOMAIN

        public static final java.lang.String OUTPUT_HEADER_DOMAIN
        See Also:
        Constant Field Values
      • OUTPUT_HEADER_QUORUM_SIZE

        public static final java.lang.String OUTPUT_HEADER_QUORUM_SIZE
        See Also:
        Constant Field Values
      • OUTPUT_HEADER_LEADING_MASTER

        public static final java.lang.String OUTPUT_HEADER_LEADING_MASTER
        See Also:
        Constant Field Values
      • OUTPUT_SERVER_INFO

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

      • QuorumInfoCommand

        public QuorumInfoCommand​(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
      • getCommandName

        public java.lang.String getCommandName()
      • 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
      • getOptions

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