@ThreadSafe @PublicApi public final class ConsistentHashCommand extends AbstractFileSystemCommand
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.cli.Option |
CLEAN_CHECK_DATA |
static org.apache.commons.cli.Option |
COMPARE_CHECK_FILES |
static org.apache.commons.cli.Option |
CREATE_CHECK_FILE |
mFileSystem, mFsContext
Constructor and Description |
---|
ConsistentHashCommand(FileSystemContext fsContext) |
Modifier and Type | Method and Description |
---|---|
void |
cleanCheckData()
Clean all the check data.
|
void |
close()
Used to close resources created by commands.
|
void |
createCheckFile()
Create the check file.
|
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
getSubCommands, hasSubCommand, parseAndValidateArgs
public static final org.apache.commons.cli.Option CREATE_CHECK_FILE
public static final org.apache.commons.cli.Option COMPARE_CHECK_FILES
public static final org.apache.commons.cli.Option CLEAN_CHECK_DATA
public ConsistentHashCommand(FileSystemContext fsContext)
fsContext
- the filesystem of Alluxiopublic void cleanCheckData() throws IOException, AlluxioException
IOException
AlluxioException
public void createCheckFile() throws IOException, AlluxioException
IOException
AlluxioException
public void close() throws IOException
Command
IOException
- if closing resources failspublic String getCommandName()
Command
public org.apache.commons.cli.Options getOptions()
Options
of the commandpublic 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 AlluxioException, IOException
Command
cl
- the parsed command line for the argumentsAlluxioException
IOException
public String getUsage()
public String getDescription()
Copyright © 2023. All Rights Reserved.