Class AddCommand

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

    public final class AddCommand
    extends AbstractFsAdminCommand
    Adds path level configurations.
    • Field Detail

      • PROPERTY_OPTION_NAME

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

      • AddCommand

        public AddCommand​(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()
      • 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)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • getUsage

        public java.lang.String getUsage()
      • description

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

        public static java.lang.String nonClientScopePropertyException​(alluxio.conf.PropertyKey key)
        Parameters:
        key - the property key
        Returns:
        the exception message for a non-client scope property key
      • getDescription

        public java.lang.String getDescription()