Class DistributedLoadCommand

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

    @ThreadSafe
    @PublicApi
    public final class DistributedLoadCommand
    extends AbstractDistributedJobCommand
    Loads a file or directory in Alluxio space, makes it resident in memory.
    • Constructor Detail

      • DistributedLoadCommand

        public DistributedLoadCommand​(alluxio.client.file.FileSystemContext fsContext)
        Constructs a new instance to load a file or directory in Alluxio space.
        Parameters:
        fsContext - the filesystem of Alluxio
    • 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
      • getUsage

        public java.lang.String getUsage()
      • getDescription

        public java.lang.String getDescription()
      • run

        public int run​(org.apache.commons.cli.CommandLine cl)
                throws alluxio.exception.AlluxioException,
                       java.io.IOException
        Throws:
        alluxio.exception.AlluxioException
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException