public class PauseCommand extends AbstractRatisCommand
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ADDRESS_OPTION_NAME |
GROUPID_OPTION_NAME, PEER_OPTION_NAME| 构造器和说明 |
|---|
PauseCommand(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.
|
getGroupInfoReply, getIds, getLeader, getPeerStream, getRaftGroup, newRaftClient, processReplygetContext, getPrintStream, printf, printlnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, compareTo, getSubCommands, hasSubCommand, parseAndValidateArgs, validateArgspublic PauseCommand(Context context)
context - command contextpublic String getCommandName()
Commandpublic int run(org.apache.commons.cli.CommandLine cl)
throws IOException
Commandrun 在接口中 Commandrun 在类中 AbstractRatisCommandcl - the parsed command line for the argumentsIOExceptionpublic String getUsage()
public String getDescription()
public org.apache.commons.cli.Options getOptions()
getOptions 在接口中 CommandgetOptions 在类中 AbstractRatisCommandOptions of the commandpublic static String description()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.