@Cli(name="jmxterm",
description="Main executable of JMX terminal CLI tool",
note="Without any option, this command opens an interactive command line based console. With a given input file, commands in file will be executed and process ends after file is processed")
public class CliMainOptions
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
STDERR
Constant
stderr that identifies standard error output |
static String |
STDIN
Constant
stdin that identifies standard input |
static String |
STDOUT
Constant
stdout that identifies standard output |
| Constructor and Description |
|---|
CliMainOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInput() |
String |
getOutput() |
String |
getPassword() |
String |
getUrl() |
String |
getUser() |
String |
getVerboseLevel() |
boolean |
isAppendToOutput() |
boolean |
isExitOnFailure() |
boolean |
isHelp() |
boolean |
isNonInteractive() |
boolean |
isSecureRmiRegistry() |
void |
setAppendToOutput(boolean appendToOutput) |
void |
setExitOnFailure(boolean exitOnFailure) |
void |
setHelp(boolean help) |
void |
setInput(String file) |
void |
setNonInteractive(boolean nonInteractive) |
void |
setOutput(String outputFile) |
void |
setPassword(String password) |
void |
setSecureRmiRegistry(boolean isSecureRmiRegistry) |
void |
setUrl(String url) |
void |
setUser(String user) |
void |
setVerboseLevel(String verboseLevel) |
public static final String STDERR
stderr that identifies standard error outputpublic static final String STDIN
stdin that identifies standard inputpublic static final String STDOUT
stdout that identifies standard outputpublic final String getInput()
public final String getOutput()
public final String getPassword()
public final String getUrl()
public final String getUser()
public final String getVerboseLevel()
public final boolean isExitOnFailure()
public final boolean isAppendToOutput()
public final boolean isHelp()
setHelp(boolean)public final boolean isNonInteractive()
public final boolean isSecureRmiRegistry()
@Option(name="e",
longName="exitonfailure",
description="With this flag, terminal exits for any Exception")
public final void setExitOnFailure(boolean exitOnFailure)
exitOnFailure - True if terminal exits on any failure@Option(name="h",
longName="help",
description="Show usage of this command line")
public final void setHelp(boolean help)
help - True to turn on help flag@Option(name="i",
longName="input",
description="Input script file. There can only be one input file. \"stdin\" is the default value which means console input")
public final void setInput(String file)
file - Input script path or stdin as default value for console input@Option(name="n",
longName="noninteract",
description="Non interactive mode. Use this mode if input doesn\'t come from human or jmxterm is embedded")
public final void setNonInteractive(boolean nonInteractive)
nonInteractive - True if CLI runs without user interaction, such as piped input@Option(name="o",
longName="output",
description="Output file, stdout or stderr. Default value is stdout")
public final void setOutput(String outputFile)
@Option(name="p",
longName="password",
description="Password for user/password authentication")
public final void setPassword(String password)
password - Password for user/password authentication@Option(name="l",
longName="url",
description="Location of MBean service. It can be <host>:<port> or full service URL.")
public final void setUrl(String url)
url - MBean server URL@Option(name="u",
longName="user",
description="User name for user/password authentication")
public final void setUser(String user)
user - User name for user/password authentication@Option(name="v",
longName="verbose",
description="Verbose level, could be silent|brief|verbose. Default value is brief")
public final void setVerboseLevel(String verboseLevel)
verboseLevel - Verbose level@Option(name="a",
longName="appendtooutput",
description="With this flag, the outputfile is preserved and content is appended to it")
public final void setAppendToOutput(boolean appendToOutput)
appendToOutput - True if outputfile is preserved@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.