Class QueryCommand

All Implemented Interfaces:
Command
Direct Known Subclasses:
BstatCommand

public class QueryCommand extends AbstractJmxCommand
  • Field Details

    • helpFile

      protected String[] helpFile
  • Constructor Details

    • QueryCommand

      public QueryCommand()
  • Method Details

    • getName

      public String getName()
    • getOneLineDescription

      public String getOneLineDescription()
    • runTask

      protected void runTask(List<String> tokens) throws Exception
      Queries the mbeans registered in the specified JMX context
      Specified by:
      runTask in class AbstractCommand
      Parameters:
      tokens - - command arguments
      Throws:
      Exception
    • handleOption

      protected void handleOption(String token, List<String> tokens) throws Exception
      Handle the -Q, -xQ, --objname, --xobjname, --view --invoke options.
      Overrides:
      handleOption in class AbstractJmxCommand
      Parameters:
      token - - option token to handle
      tokens - - succeeding command arguments
      Throws:
      Exception
    • printHelp

      protected void printHelp()
      Print the help messages for the browse command
      Specified by:
      printHelp in class AbstractCommand