@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 |
Modifier | Constructor and Description |
---|---|
protected |
AbstractFileSystemCommand(FileSystem fs) |
Modifier and Type | Method and Description |
---|---|
protected void |
runPlainPath(AlluxioURI plainPath,
org.apache.commons.cli.CommandLine cl)
Run 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)
Run the command for a particular URI that may contain wildcard in its path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandName, getDescription, getOptions, getUsage, parseAndValidateArgs, run, validateArgs
protected FileSystem mFileSystem
protected AbstractFileSystemCommand(FileSystem fs)
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 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 commandLineAlluxioException
IOException
Copyright © 2023. All Rights Reserved.