Package alluxio.cli.fs.command
Class PersistCommand
- java.lang.Object
-
- alluxio.cli.fs.command.AbstractFileSystemCommand
-
- alluxio.cli.fs.command.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.
-
-
Field Summary
-
Fields inherited from class alluxio.cli.fs.command.AbstractFileSystemCommand
mFileSystem, mFsContext
-
-
Constructor Summary
Constructors Constructor Description PersistCommand(alluxio.client.file.FileSystemContext fsContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandName()java.lang.StringgetDescription()org.apache.commons.cli.OptionsgetOptions()java.lang.StringgetUsage()intrun(org.apache.commons.cli.CommandLine cl)voidvalidateArgs(org.apache.commons.cli.CommandLine cl)-
Methods inherited from class alluxio.cli.fs.command.AbstractFileSystemCommand
processHeader, runPlainPath, runWildCardCmd
-
-
-
-
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.AlluxioExceptionjava.io.IOException
-
-