Package alluxio.cli.fs.command
Class DistributedLoadCommand
- java.lang.Object
-
- alluxio.cli.fs.command.AbstractFileSystemCommand
-
- alluxio.cli.fs.command.AbstractDistributedJobCommand
-
- alluxio.cli.fs.command.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.
-
-
Field Summary
-
Fields inherited from class alluxio.cli.fs.command.AbstractDistributedJobCommand
ASYNC_OPTION, DEFAULT_ACTIVE_JOBS, mActiveJobs, mClient, mSubmittedJobAttempts
-
Fields inherited from class alluxio.cli.fs.command.AbstractFileSystemCommand
mFileSystem, mFsContext
-
-
Constructor Summary
Constructors Constructor Description DistributedLoadCommand(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 voidclose()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.AbstractDistributedJobCommand
drain, getCompletedCmdCount, getCompletedCount, getFailedCmdCount, getFailedCount, getFailedFiles, postProcessing, processFailures, submit, waitForCmd, waitJob
-
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
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-