Class SimpleRedirectorCommand
java.lang.Object
com.ibm.java.diagnostics.utils.commands.BaseCommand
com.ibm.jvm.dtfjview.commands.BaseJdmpviewCommand
com.ibm.jvm.dtfjview.commands.SimpleRedirectorCommand
- All Implemented Interfaces:
ICommand
- Direct Known Subclasses:
InfoCommand, SetCommand, ShowCommand
There are a number of jdmpview commands which just act as routing
commands onto other more specific commands. This class provides an
abstract superclass for these commands to inherit from.
-
Nested Class Summary
Nested classes/interfaces declared in class BaseJdmpviewCommand
BaseJdmpviewCommand.ArtifactType -
Field Summary
FieldsFields declared in class BaseJdmpviewCommand
ctx, hexfmt, logger, outFields declared in class BaseCommand
COMMAND_FORMAT, config, nl, SUBCOMMAND_FORMAT -
Constructor Summary
Constructors -
Method Summary
Methods declared in class BaseJdmpviewCommand
decodeThreadState, getArtifactType, handleException, initCommand, printDetailedHelp, toHexString, toHexString, toHexString, toHexString, toHexStringAddr, toLong, toString, toStringMethods declared in class BaseCommand
addCommand, addSubCommand, getCommandDescriptions, getCommandNames, getConfig, recognises, setConfig
-
Field Details
-
SUB_CMD_FORMAT
- See Also:
-
-
Constructor Details
-
SimpleRedirectorCommand
public SimpleRedirectorCommand()
-
-
Method Details
-
getCmdName
Get the base command name which triggers this routing- Returns:
-
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.)
-