java.lang.Object
com.ibm.java.diagnostics.utils.commands.BaseCommand
com.ibm.jvm.dtfjview.commands.BaseJdmpviewCommand
com.ibm.jvm.dtfjview.commands.HelpCommand
- All Implemented Interfaces:
ICommand
Prints out either a help summary for all commands in this context or forwards
the request onto a particular command for a detailed output. Note that the context
command is a 'pseudo-command' in that it is what controls switching contexts and so
is never actually in the list of commands available for the current context. The help
entries for the context command are therefore added manually.
-
Nested Class Summary
Nested classes/interfaces declared in class com.ibm.jvm.dtfjview.commands.BaseJdmpviewCommand
BaseJdmpviewCommand.ArtifactType
-
Field Summary
Fields declared in class com.ibm.jvm.dtfjview.commands.BaseJdmpviewCommand
ctx, hexfmt, logger, out
Fields declared in class com.ibm.java.diagnostics.utils.commands.BaseCommand
COMMAND_FORMAT, config, nl, SUBCOMMAND_FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Print detailed help for a given commandvoid
run
(String command, String[] args, IContext context, PrintStream out) Executes the commandMethods declared in class com.ibm.jvm.dtfjview.commands.BaseJdmpviewCommand
decodeThreadState, getArtifactType, handleException, initCommand, toHexString, toHexString, toHexString, toHexString, toHexStringAddr, toLong, toString, toString
Methods declared in class com.ibm.java.diagnostics.utils.commands.BaseCommand
addCommand, addSubCommand, getCommandDescriptions, getCommandNames, getConfig, recognises, setConfig
-
Constructor Details
-
HelpCommand
public HelpCommand()
-
-
Method Details
-
run
public void run(String command, String[] args, IContext context, PrintStream out) throws CommandException Description copied from interface:ICommand
Executes 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.)
-
printDetailedHelp
Description copied from class:BaseJdmpviewCommand
Print detailed help for a given command- Specified by:
printDetailedHelp
in classBaseJdmpviewCommand
- Parameters:
out
- stream to write the output to
-