Module openj9.dtfj

Class Context


  • public class Context
    extends Object
    Represents a process and its VMData.
    • Method Detail

      • 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