@ThreadSafe @PublicApi public final class GetUsedBytesCommand extends AbstractFileSystemCommand
FileSystem
.mFileSystem, mFsContext
Constructor and Description |
---|
GetUsedBytesCommand(FileSystemContext fsContext)
Constructs a new instance to get the number of bytes used in the
FileSystem . |
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
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, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
public GetUsedBytesCommand(FileSystemContext fsContext)
FileSystem
.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 int run(org.apache.commons.cli.CommandLine cl) throws IOException
Command
cl
- the parsed command line for the argumentsIOException
public String getUsage()
public String getDescription()
Copyright © 2023. All Rights Reserved.