@ThreadSafe public abstract class AbstractFileSystemCommand extends java.lang.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, waitclose, getCommandName, getDescription, getOptions, getSubCommands, getUsage, hasSubCommand, parseAndValidateArgs, run, validateArgsprotected FileSystem mFileSystem
protected FileSystemContext mFsContext
protected AbstractFileSystemCommand(@Nullable
FileSystemContext fsContext)
protected void runPlainPath(AlluxioURI plainPath, org.apache.commons.cli.CommandLine cl) throws AlluxioException, java.io.IOException
plainPath - an AlluxioURI that does not contain wildcardcl - object containing the original commandLineAlluxioExceptionjava.io.IOExceptionprotected void processHeader(org.apache.commons.cli.CommandLine cl)
throws java.io.IOException
cl - object containing the original commandLinejava.io.IOExceptionprotected void runWildCardCmd(AlluxioURI wildCardPath, org.apache.commons.cli.CommandLine cl) throws java.io.IOException
wildCardPath - an AlluxioURI that may or may not contain a wildcardcl - object containing the original commandLinejava.io.IOExceptionCopyright © 2022. All Rights Reserved.