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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProcess command line parameters and return action.Get summarized help (typically a single line).static voidprintStatus(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
getSessionModesMethods 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:AbstractCommandGet summarized help (typically a single line).- Specified by:
getHelpSummaryin interfaceCommand- Specified by:
getHelpSummaryin classAbstractCommand- Returns:
- one line command summary
-
getAction
Description copied from class:AbstractCommandProcess command line parameters and return action.- Specified by:
getActionin 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
-