@ThreadSafe public abstract class AbstractFileSystemCommand extends Object implements Command
Command
classes.
It provides a place to hold the FileSystem
client.Modifier and Type | Field and Description |
---|---|
protected FileSystem |
mFileSystem |
protected FileSystemContext |
mFsContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractFileSystemCommand(FileSystemContext fsContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
processHeader(org.apache.commons.cli.CommandLine cl)
Processes the header of the command.
|
protected void |
runPlainPath(AlluxioURI plainPath,
org.apache.commons.cli.CommandLine cl)
Runs the command for a particular URI that does not contain wildcard in its path.
|
protected void |
runWildCardCmd(AlluxioURI wildCardPath,
org.apache.commons.cli.CommandLine cl)
Runs the command for a particular URI that may contain wildcard in its path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getCommandName, getDescription, getOptions, getSubCommands, getUsage, hasSubCommand, parseAndValidateArgs, run, validateArgs
protected FileSystem mFileSystem
protected FileSystemContext mFsContext
protected AbstractFileSystemCommand(@Nullable FileSystemContext fsContext)
protected void runPlainPath(AlluxioURI plainPath, org.apache.commons.cli.CommandLine cl) throws AlluxioException, IOException
plainPath
- an AlluxioURI that does not contain wildcardcl
- object containing the original commandLineAlluxioException
IOException
protected void processHeader(org.apache.commons.cli.CommandLine cl) throws IOException
cl
- object containing the original commandLineIOException
protected void runWildCardCmd(AlluxioURI wildCardPath, org.apache.commons.cli.CommandLine cl) throws IOException
wildCardPath
- an AlluxioURI that may or may not contain a wildcardcl
- object containing the original commandLineIOException
Copyright © 2023. All Rights Reserved.