public class RaftMetaConfCommand extends AbstractCommand
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PATH_OPTION_NAME |
static String |
PEER_OPTION_NAME |
| 构造器和说明 |
|---|
RaftMetaConfCommand(Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
description() |
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.
|
getContext, getPrintStream, printf, printlnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, compareTo, getSubCommands, hasSubCommand, parseAndValidateArgs, validateArgspublic RaftMetaConfCommand(Context context)
context - command contextpublic String getCommandName()
Commandpublic int run(org.apache.commons.cli.CommandLine cl)
throws IOException
Commandcl - the parsed command line for the argumentsIOExceptionpublic String getUsage()
public String getDescription()
public org.apache.commons.cli.Options getOptions()
Options of the commandpublic static String description()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.