- java.lang.Object
- 
- com.ibm.j9ddr.tools.ddrinteractive.Context
 
- 
 public class Context extends Object Represents a process and its VMData.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(CommandParser command, PrintStream defaultOut)New way - use CommandParser for added smarts in handling commands (file redirection etc.)voidexecute(String command, String[] arguments, PrintStream out)Old way - use command and arguments as plain strings.Vector<String>getCommandNames()DDRInteractiveClassLoadergetPluginClassloader()voidrefreshCommandList()StringtoString(boolean shortFormat)
 
- 
- 
- 
Field Detail- 
TASK_FINDVMpublic static final String TASK_FINDVM - See Also:
- Constant Field Values
 
 - 
TASK_GETCOMMANDSpublic static final String TASK_GETCOMMANDS - See Also:
- Constant Field Values
 
 - 
processpublic final IProcess process 
 - 
vmDatapublic final IVMData vmData 
 - 
vmAddresspublic final long vmAddress 
 - 
loggerpublic final Logger logger Shared logger for all commands to write to
 
- 
 - 
Method Detail- 
getPluginClassloaderpublic DDRInteractiveClassLoader getPluginClassloader() 
 - 
refreshCommandListpublic void refreshCommandList() 
 - 
toStringpublic String toString(boolean shortFormat) 
 - 
executepublic void execute(String command, String[] arguments, PrintStream out) Old way - use command and arguments as plain strings.- Parameters:
- command-
- arguments-
- out-
 
 - 
executepublic 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
 
 
- 
 
-