Package io.permazen.kv.raft.cmd
Class RaftStatusCommand
java.lang.Object
io.permazen.cli.cmd.AbstractCommand
io.permazen.kv.raft.cmd.AbstractRaftCommand
io.permazen.kv.raft.cmd.RaftStatusCommand
- All Implemented Interfaces:
Command
-
Nested Class Summary
Nested classes/interfaces inherited from class io.permazen.kv.raft.cmd.AbstractRaftCommand
AbstractRaftCommand.RaftAction
-
Field Summary
Fields inherited from class io.permazen.cli.cmd.AbstractCommand
log, name, paramParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProcess command line parameters and return action.Get summarized help (typically a single line).static void
printStatus
(PrintStream out, RaftKVDatabase db) Print the local Raft node's status to the given destination.Methods inherited from class io.permazen.kv.raft.cmd.AbstractRaftCommand
getSessionModes
Methods inherited from class io.permazen.cli.cmd.AbstractCommand
execute, getHelpDetail, getName, getParser, getUsage
-
Constructor Details
-
RaftStatusCommand
public RaftStatusCommand()
-
-
Method Details
-
getHelpSummary
Description copied from class:AbstractCommand
Get summarized help (typically a single line).- Specified by:
getHelpSummary
in interfaceCommand
- Specified by:
getHelpSummary
in classAbstractCommand
- Returns:
- one line command summary
-
getAction
Description copied from class:AbstractCommand
Process command line parameters and return action.- Specified by:
getAction
in classAbstractCommand
- Parameters:
session
- CLI sessionparams
- parsed parameters indexed by name- Returns:
- action to perform for the parsed command
-
printStatus
Print the local Raft node's status to the given destination.- Parameters:
out
- destination for statusdb
- Raft database- Throws:
IllegalArgumentException
- if either parameter is null
-