Package io.permazen.cli.cmd
Interface Command
- All Known Implementing Classes:
AbstractCommand,AbstractKVCommand,AbstractRaftCommand,AbstractTransactionRaftCommand,CompareSchemasCommand,DecodeKeyCommand,InfoCommand,JsckCommand,KVGetCommand,KVLoadCommand,KVPutCommand,KVRemoveCommand,KVSaveCommand,LoadCommand,RaftAddCommand,RaftFallbackForceStandaloneCommand,RaftFallbackStatusCommand,RaftRemoveCommand,RaftStartElectionCommand,RaftStatusCommand,RaftStepDownCommand,RemoveSchemaCommand,SaveCommand,SetAllowNewSchemaCommand,SetLogLevelCommand,SetSchemaRemovalCommand,SetSessionModeCommand,SetValidationModeCommand,SetVerboseCommand,ShowSchemaCommand
public interface Command
Session command.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintExecute this command.Get expanded help (typically multiple lines).Get summarized help (typically a single line).getName()Get the name of this command.Get theSessionMode(s) supported by this command.getUsage()Get command usage string.
-
Method Details
-
getName
String getName()Get the name of this command.- Returns:
- command name
-
getUsage
String getUsage()Get command usage string.- Returns:
- command usage string
-
getHelpSummary
String getHelpSummary()Get summarized help (typically a single line).- Returns:
- one line command summary
-
getHelpDetail
String getHelpDetail()Get expanded help (typically multiple lines).- Returns:
- detailed command description
-
getSessionModes
EnumSet<SessionMode> getSessionModes()Get theSessionMode(s) supported by this command.- Returns:
- set of supported
SessionModes
-
execute
Execute this command.- Parameters:
session- CLI sessionname- command nameargs- command line arguments- Returns:
- command return value
- Throws:
InterruptedException- if the current thread is interruptedIllegalArgumentException- if any parameter is null
-