Class JvmsCommand

java.lang.Object
org.cyclopsgroup.jmxterm.Command
org.cyclopsgroup.jmxterm.cmd.JvmsCommand
All Implemented Interfaces:
org.cyclopsgroup.jcli.AutoCompletable

@Cli(name="jvms", description="List all running local JVM processes") public class JvmsCommand extends Command
Command to list all running local JVM processes
Author:
Jiaqi Guo
  • Constructor Details

    • JvmsCommand

      public JvmsCommand()
  • Method Details

    • execute

      public void execute() throws IOException, JMException
      Description copied from class: Command
      Execute command
      Specified by:
      execute in class Command
      Throws:
      IOException - IO errors
      JMException - JMX errors
    • setPidOnly

      @Option(name="p", longName="pidonly", description="Only print out PID") public final void setPidOnly(boolean pidOnly)
      Parameters:
      pidOnly - Flag to notify command to only print out PID instead of more details