public class RestartCommand extends ConsoleCommand
Constructor and Description |
---|
RestartCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Scanner in,
PrintWriter out,
Args args)
Executes a command.
|
String |
getDescription()
Returns localized details of the command.
|
String |
getInfo()
Returns a one-line localized description of the command.
|
String |
getName()
Returns the name of the command.
|
getExamples, getSynopsis
public RestartCommand()
public String getName()
ConsoleCommand
Example:
getName
in class ConsoleCommand
public String getInfo()
ConsoleCommand
The locale should be the system locale.
getInfo
in class ConsoleCommand
public String getDescription()
ConsoleCommand
The locale should be the system locale.
getDescription
in class ConsoleCommand
public boolean execute(Scanner in, PrintWriter out, Args args) throws Exception
ConsoleCommand
execute
in class ConsoleCommand
in
- The console reader.out
- The console writer.args
- The command arguments. The first argument is always the command itself.Exception
- Any thrown exception will simply be sent to STDERR.Copyright © 2018 Apache. All rights reserved.