Class WalkJ9PoolCommand
java.lang.Object
com.ibm.j9ddr.tools.ddrinteractive.Command
com.ibm.j9ddr.vm29.tools.ddrinteractive.commands.WalkJ9PoolCommand
- All Implemented Interfaces:
ICommand
Implementation of DDR extension !walkj9pool.
This extension takes a J9Pool address and an optional type argument,
and prints the address of each element in the pool as a runnable DDR command.
The type argument is used to derive the DDR command prefix to prepend to each
element's address. If not provided, the default DDR command prefix is "!j9x".
-
Nested Class Summary
Nested classes/interfaces declared in class Command
Command.CommandDescription -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(String command, String[] args, Context context, PrintStream out) Run method for !Methods declared in class Command
addCommand, addSubCommand, dbgFindPatternInRange, getCommandDescriptions, getCommandNames, printDetailedHelp, recognisesModifier and TypeMethodDescriptionaddCommand(String name, String argDescription, String helpDescription) voidaddSubCommand(Command.CommandDescription command, String name, String argDescription, String helpDescription) protected longdbgFindPatternInRange(Context context, byte[] pattern, int patternAlignment, long startSearchFrom, BigInteger bytesToSearch) voidThis prints the detailed help for the command by listing all the names that this command can be invoked by and also any sub commands that have been defined.booleanrecognises(String command, Context context) Method used by the DDR Interactive engine to decide whether this command matches the command passed in by the user
-
Constructor Details
-
WalkJ9PoolCommand
public WalkJ9PoolCommand()Constructor
-
-
Method Details
-
run
public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException Run method for !walkj9pool extension.- Parameters:
command- !walkj9poolargs- args passed by !walkj9pool extensioncontext- Contextout- PrintStream- Throws:
DDRInteractiveCommandException
-