Package alluxio.cli.fs.command
Class LoadCommand
- java.lang.Object
-
- alluxio.cli.fs.command.AbstractFileSystemCommand
-
- alluxio.cli.fs.command.LoadCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
@ThreadSafe @PublicApi public final class LoadCommand extends AbstractFileSystemCommand
Loads a file or directory in Alluxio space, making it resident in Alluxio.
-
-
Field Summary
-
Fields inherited from class alluxio.cli.fs.command.AbstractFileSystemCommand
mFileSystem, mFsContext
-
-
Constructor Summary
Constructors Constructor Description LoadCommand(alluxio.client.file.FileSystemContext fsContext)Constructs a new instance to load a file or directory in Alluxio space.
-
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)protected voidrunPlainPath(alluxio.AlluxioURI plainPath, org.apache.commons.cli.CommandLine cl)Runs the command for a particular URI that does not contain wildcard in its path.voidvalidateArgs(org.apache.commons.cli.CommandLine cl)-
Methods inherited from class alluxio.cli.fs.command.AbstractFileSystemCommand
processHeader, runWildCardCmd
-
-
-
-
Method Detail
-
getCommandName
public java.lang.String getCommandName()
-
getOptions
public org.apache.commons.cli.Options getOptions()
-
run
public int run(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.AlluxioException, java.io.IOException- Throws:
alluxio.exception.AlluxioExceptionjava.io.IOException
-
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
-
runPlainPath
protected void runPlainPath(alluxio.AlluxioURI plainPath, org.apache.commons.cli.CommandLine cl) throws alluxio.exception.AlluxioException, java.io.IOExceptionDescription copied from class:AbstractFileSystemCommandRuns the command for a particular URI that does not contain wildcard in its path.- Overrides:
runPlainPathin classAbstractFileSystemCommand- Parameters:
plainPath- an AlluxioURI that does not contain wildcardcl- object containing the original commandLine- Throws:
alluxio.exception.AlluxioExceptionjava.io.IOException
-
-