- java.lang.Object
-
- com.ibm.j9ddr.tools.ddrinteractive.Context
-
public class Context extends Object
Represents a process and its VMData.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(CommandParser command, PrintStream defaultOut)
New way - use CommandParser for added smarts in handling commands (file redirection etc.)void
execute(String command, String[] arguments, PrintStream out)
Old way - use command and arguments as plain strings.Vector<String>
getCommandNames()
DDRInteractiveClassLoader
getPluginClassloader()
void
refreshCommandList()
String
toString(boolean shortFormat)
-
-
-
Field Detail
-
TASK_FINDVM
public static final String TASK_FINDVM
- See Also:
- Constant Field Values
-
TASK_GETCOMMANDS
public static final String TASK_GETCOMMANDS
- See Also:
- Constant Field Values
-
process
public final IProcess process
-
vmData
public final IVMData vmData
-
vmAddress
public final long vmAddress
-
logger
public final Logger logger
Shared logger for all commands to write to
-
-
Method Detail
-
getPluginClassloader
public DDRInteractiveClassLoader getPluginClassloader()
-
refreshCommandList
public void refreshCommandList()
-
toString
public String toString(boolean shortFormat)
-
execute
public void execute(String command, String[] arguments, PrintStream out)
Old way - use command and arguments as plain strings.- Parameters:
command
-arguments
-out
-
-
execute
public void execute(CommandParser command, PrintStream defaultOut)
New way - use CommandParser for added smarts in handling commands (file redirection etc.)- Parameters:
command
-defaultOut
- - the command may be redirecting output to file, but if it isn't, the defaultOut is used to print the results. Errors are always written to defaultOut
-
-