@Cli(name="open",
description="Open JMX session or display current connection",
note="Without argument this command display current connection. URL can be a <PID>, <hostname>:<port> or full qualified JMX service URL. For example\n open localhost:9991,\n open jmx:service:...")
public class OpenCommand
extends Command
| Constructor and Description |
|---|
OpenCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute command
|
void |
setPassword(String password) |
void |
setSecureRmiRegistry(boolean isSecureRmiRegistry) |
void |
setUrl(String url) |
void |
setUser(String user) |
doSuggestArgument, doSuggestOption, getSession, isHelp, setHelp, setSession, suggestArgument, suggestOptionpublic void execute()
throws IOException
Commandexecute in class CommandIOException - IO errors@Option(name="p",
longName="password",
description="Password for user/password authentication")
public final void setPassword(String password)
password - Password for user authentication@Argument(displayName="url",
description="URL, <host>:<port>, or a PID to connect to")
public final void setUrl(String url)
url - URL of MBean service to open@Option(name="u",
longName="user",
description="User name for user/password authentication")
public final void setUser(String user)
user - User name for user authentication@Option(name="s",
longName="sslrmiregistry",
description="Whether the server\'s RMI registry is protected with SSL/TLS")
public final void setSecureRmiRegistry(boolean isSecureRmiRegistry)
isSecureRmiRegistry - Whether the server's RMI registry is protected with SSL/TLS
(com.sun.management.jmxremote.registry.ssl=true)Copyright © 2008–2019. All rights reserved.