Class QuitCommand
java.lang.Object
com.ibm.java.diagnostics.utils.commands.BaseCommand
com.ibm.java.diagnostics.utils.commands.QuitCommand
- All Implemented Interfaces:
ICommand
Command to quit out of the interactive command parser
-
Field Summary
Fields declared in class BaseCommand
COMMAND_FORMAT, config, nl, SUBCOMMAND_FORMATModifier and TypeFieldDescriptionprotected static final Stringprotected PluginConfigprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(String command, String[] args, IContext context, PrintStream out) Executes the commandMethods declared in class BaseCommand
addCommand, addSubCommand, getCommandDescriptions, getCommandNames, getConfig, recognises, setConfigModifier and TypeMethodDescriptionaddCommand(String name, String argDescription, String helpDescription) voidaddSubCommand(String cmdname, String subname, String argDescription, String help) Identifies the configuration from which this command was created.booleanrecognises(String command, IContext context) Method used by an interactive engine to decide whether this command matches the command passed in by the uservoidsetConfig(PluginConfig config)
-
Constructor Details
-
QuitCommand
public QuitCommand()
-
-
Method Details
-
run
public void run(String command, String[] args, IContext context, PrintStream out) throws CommandException Description copied from interface:ICommandExecutes the command- Parameters:
command- Command string e.g. !j9xargs- Arguments for commandcontext- Context to work inout- PrintStream to write command output on- Throws:
CommandException- If there is any problem running the command (incorrect usage, CorruptData etc.)
-