Package io.permazen.kv.raft.cmd
Class RaftFallbackStatusCommand
java.lang.Object
io.permazen.cli.cmd.AbstractCommand
io.permazen.kv.raft.cmd.RaftFallbackStatusCommand
- All Implemented Interfaces:
Command
-
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).Get theSessionMode
(s) supported by this command.static void
printStatus
(PrintStream out, FallbackKVDatabase db) Print the fallback status status to the given destination.Methods inherited from class io.permazen.cli.cmd.AbstractCommand
execute, getHelpDetail, getName, getParser, getUsage
-
Constructor Details
-
RaftFallbackStatusCommand
public RaftFallbackStatusCommand()
-
-
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
-
getSessionModes
Description copied from class:AbstractCommand
Get theSessionMode
(s) supported by this command.The implementation in
AbstractCommand
returns anEnumSet
containingSessionMode.CORE_API
andSessionMode.PERMAZEN
.- Specified by:
getSessionModes
in interfaceCommand
- Overrides:
getSessionModes
in classAbstractCommand
- Returns:
- set of supported
SessionMode
s
-
getAction
Description copied from class:AbstractCommand
Process command line parameters and return action.- Specified by:
getAction
in classAbstractCommand
- Parameters:
session0
- CLI sessionparams
- parsed parameters indexed by name- Returns:
- action to perform for the parsed command
-
printStatus
Print the fallback status status to the given destination.- Parameters:
out
- destination for statusdb
- Raft database- Throws:
IllegalArgumentException
- if either parameter is null
-