Package org.cyclopsgroup.jmxterm.cmd
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Execute commandfinal voidsetPidOnly(boolean pidOnly) Methods inherited from class org.cyclopsgroup.jmxterm.Command
doSuggestArgument, doSuggestOption, getSession, isHelp, setHelp, setSession, suggestArgument, suggestOption
-
Constructor Details
-
JvmsCommand
public JvmsCommand()
-
-
Method Details
-
execute
Description copied from class:CommandExecute command- Specified by:
executein classCommand- Throws:
IOException- IO errorsJMException- 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
-