Class RestartCommand
java.lang.Object
org.apache.juneau.microservice.console.ConsoleCommand
org.apache.juneau.microservice.console.RestartCommand
Implements the 'restart' console command to gracefully shut down and restart the microservice.
 
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.juneau.microservice.console.ConsoleCommandgetExamples, getSynopsis
- 
Constructor Details- 
RestartCommandpublic RestartCommand()
 
- 
- 
Method Details- 
getNameDescription copied from class:ConsoleCommandReturns the name of the command.Example: "help" for the help command.- Specified by:
- getNamein class- ConsoleCommand
- Returns:
- The name of the command.
   
 Must not benull or contain spaces.
 
- 
getInfoDescription copied from class:ConsoleCommandReturns a one-line localized description of the command.The locale should be the system locale. - Overrides:
- getInfoin class- ConsoleCommand
- Returns:
- The localized description of the command.
   
 Can benull if there is no information.
 
- 
getDescriptionDescription copied from class:ConsoleCommandReturns localized details of the command.The locale should be the system locale. - Overrides:
- getDescriptionin class- ConsoleCommand
- Returns:
- The localized details of the command.
   
 Can benull if there is no additional description.
 
- 
executeDescription copied from class:ConsoleCommandExecutes a command.- Specified by:
- executein class- ConsoleCommand
- 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 return- true if your action is causing the microservice to exit or restart.
- Throws:
- Exception- Any thrown exception will simply be sent to STDERR.
 
 
-