Class PersistCommand

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

    @ThreadSafe
    @PublicApi
    public final class PersistCommand
    extends AbstractFileSystemCommand
    Persists files or directories currently stored only in Alluxio to the UnderFileSystem.
    • Constructor Detail

      • PersistCommand

        public PersistCommand​(alluxio.client.file.FileSystemContext fsContext)
        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