@ThreadSafe @PublicApi public final class CpCommand extends AbstractFileSystemCommand
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.cli.Option |
BUFFER_SIZE_OPTION |
static org.apache.commons.cli.Option |
THREAD_OPTION |
mFileSystem, mFsContext
Constructor and Description |
---|
CpCommand(FileSystemContext fsContext) |
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
org.apache.commons.cli.Options |
getOptions() |
String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs the command.
|
void |
validateArgs(org.apache.commons.cli.CommandLine cl)
Checks if the arguments are valid or throw InvalidArgumentException.
|
processHeader, runPlainPath, runWildCardCmd
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getSubCommands, hasSubCommand, parseAndValidateArgs
public static final org.apache.commons.cli.Option THREAD_OPTION
public static final org.apache.commons.cli.Option BUFFER_SIZE_OPTION
public CpCommand(FileSystemContext fsContext)
fsContext
- the filesystem of Alluxiopublic String getCommandName()
Command
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
Command
cl
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validpublic org.apache.commons.cli.Options getOptions()
Options
of the commandpublic int run(org.apache.commons.cli.CommandLine cl) throws AlluxioException, IOException
Command
cl
- the parsed command line for the argumentsAlluxioException
IOException
public String getUsage()
public String getDescription()
Copyright © 2023. All Rights Reserved.