java.lang.Object
com.ibm.jvm.dtfjview.tools.ToolsRegistry
This class contains some static methods to invoke registered commands.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidTo execute a command.static voidTo execute a command with its arguments.static voidexecuteJdmpviewCommand(String jdmpviewCommand, PrintStream out) To execute a Jdmpview command.To get all the registered tools.static voidinitialize(Session session) static booleanisPipeLineEnabled(String command, String[] args) To check if a command is pipeline enabled.static StringTo execute a command.static voidprocess(String command, PrintStream out) To execute a command.static StringTo execute a command.static voidprocess(String command, String[] args, PrintStream out) To execute a command.static voidrecordAndExecute(String command) To record the command in the history and then execute it.static voidregisterTool(ITool tool) To register a tool.
-
Method Details
-
initialize
-
recordAndExecute
To record the command in the history and then execute it. This method is called only right after the command is typed in from the console. No tools should call this method directly.- Parameters:
command- The command to be executed.- Throws:
CommandException
-
execute
To execute a command. Note: Default print stream will be used.- Parameters:
command- The command to be executed.- Throws:
CommandException
-
execute
To execute a command with its arguments. Note: Default print stream will be used.- Parameters:
command- The command itself.args- The arguments to the command.- Throws:
CommandException
-
process
To execute a command. Note: this method should not be called directly by any DDR/Jdmpview commands; DDR/Jdmpview commands can use the one without the PrintStream parameter.- Parameters:
command- The command to be executed.out- The PrintStream- Throws:
CommandException
-
process
To execute a command.- Parameters:
command- The command to be executed.- Throws:
CommandException
-
process
To execute a command. Note: this method should not be called directly by any DDR/Jdmpview commands; DDR/Jdmpview commands can use the one without the PrintStream parameter.- Parameters:
command- The command to be executed.args- The arguments of the command.out- The PrintStream- Throws:
CommandException
-
process
To execute a command.- Parameters:
command- The command to be executed.args- The arguments of the command.- Throws:
CommandException
-
executeJdmpviewCommand
To execute a Jdmpview command.- Parameters:
jdmpviewCommand- The Jdmpview command.out- The PrintStream.
-
isPipeLineEnabled
To check if a command is pipeline enabled.- Parameters:
command- The command to be checked.args- The arguments to the command.- Returns:
trueif the command is pipeline enabled;falseotherwise.
-
registerTool
To register a tool.- Parameters:
tool- The tool to be added to the Store.
-
getAllTools
To get all the registered tools.- Returns:
- The list of registered tools.
-