Class ConfigCommand
java.lang.Object
org.apache.juneau.microservice.console.ConsoleCommand
org.apache.juneau.microservice.console.ConfigCommand
Implements the 'config' console command to get or set configuration.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(Scanner in, PrintWriter out, Args args) Executes a command.Returns localized details of the command.getInfo()
Returns a one-line localized description of the command.getName()
Returns the name of the command.Returns the usage synopsis of the command.Methods inherited from class org.apache.juneau.microservice.console.ConsoleCommand
getExamples
-
Constructor Details
-
ConfigCommand
public ConfigCommand()
-
-
Method Details
-
getName
Description copied from class:ConsoleCommand
Returns the name of the command.Example:
"help" for the help command.- Specified by:
getName
in classConsoleCommand
- Returns:
- The name of the command.
Must not benull or contain spaces.
-
getSynopsis
Description copied from class:ConsoleCommand
Returns the usage synopsis of the command.Example:
"help [command ...]" The default implementation just returns the name, which implies the command takes no additional arguments.
- Overrides:
getSynopsis
in classConsoleCommand
- Returns:
- The synopsis of the command.
-
getInfo
Description copied from class:ConsoleCommand
Returns a one-line localized description of the command.The locale should be the system locale.
- Overrides:
getInfo
in classConsoleCommand
- Returns:
- The localized description of the command.
Can benull if there is no information.
-
getDescription
Description copied from class:ConsoleCommand
Returns localized details of the command.The locale should be the system locale.
- Overrides:
getDescription
in classConsoleCommand
- Returns:
- The localized details of the command.
Can benull if there is no additional description.
-
execute
Description copied from class:ConsoleCommand
Executes a command.- Specified by:
execute
in classConsoleCommand
- Parameters:
in
- The console reader.out
- The console writer.args
- The command arguments. The first argument is always the command itself.- Returns:
true if the console read thread should exit.
Normally you want to returntrue if your action is causing the microservice to exit or restart.
-