public class RaftStatusCommand extends AbstractRaftCommand
AbstractRaftCommand.RaftActionlog, name, paramParser| Constructor and Description |
|---|
RaftStatusCommand() |
| Modifier and Type | Method and Description |
|---|---|
CliSession.Action |
getAction(CliSession session,
ParseContext ctx,
boolean complete,
Map<String,Object> params) |
String |
getHelpSummary() |
static void |
printStatus(PrintWriter writer,
RaftKVDatabase db)
Print the local Raft node's status to the given destination.
|
getSessionModesgetHelpDetail, getName, getParser, getUsage, parsepublic String getHelpSummary()
getHelpSummary in interface CommandgetHelpSummary in class AbstractCommandpublic CliSession.Action getAction(CliSession session, ParseContext ctx, boolean complete, Map<String,Object> params)
getAction in class AbstractCommandpublic static void printStatus(PrintWriter writer, RaftKVDatabase db)
writer - destination for statusdb - Raft databaseIllegalArgumentException - if either parameter is nullCopyright © 2016. All rights reserved.