Class ToolsRegistry
java.lang.Object
com.ibm.jvm.dtfjview.tools.ToolsRegistry
This class contains some static methods to invoke registered commands.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
To execute a command.static void
To execute a command with its arguments.static void
executeJdmpviewCommand
(String jdmpviewCommand, PrintStream out) To execute a Jdmpview command.To get all the registered tools.static void
initialize
(Session session) static boolean
isPipeLineEnabled
(String command, String[] args) To check if a command is pipeline enabled.static String
To execute a command.static void
process
(String command, PrintStream out) To execute a command.static String
To execute a command.static void
process
(String command, String[] args, PrintStream out) To execute a command.static void
recordAndExecute
(String command) To record the command in the history and then execute it.static void
registerTool
(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
-
registerTool
To register a tool.- Parameters:
tool
- The tool to be added to the Store.
-
getAllTools
-