| Constructor and Description |
|---|
RunCommand() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
doSuggestArgument()
Provide a list of possible arguments for auto completion.
|
void |
execute()
Execute command
|
void |
setBean(String bean) |
void |
setDomain(String domain) |
void |
setMeasure(boolean measure) |
void |
setParameters(List<String> parameters) |
void |
setShowQuotationMarks(boolean showQuotationMarks) |
void |
setTypes(String types) |
doSuggestOption, getSession, isHelp, setHelp, setSession, suggestArgument, suggestOptionpublic List<String> doSuggestArgument() throws IOException, JMException
CommanddoSuggestArgument in class CommandIOException - IO errorsJMException - JMX problemopublic void execute()
throws MalformedObjectNameException,
IOException,
JMException
Commandexecute in class CommandIOException - IO errorsJMException - JMX errorsMalformedObjectNameException@Option(name="b",
longName="bean",
description="MBean to invoke")
public final void setBean(String bean)
bean - Bean under which the operation is@Option(name="d",
longName="domain",
description="Domain of MBean to invoke")
public final void setDomain(String domain)
domain - Domain under which is bean is@Option(name="m",
longName="measure",
description="Measure the time spent on the invocation of operation")
public final void setMeasure(boolean measure)
measure - True if you want to display latency@Option(name="t",
longName="types",
description="Require parameters to have specific types (comma separated)")
public final void setTypes(String types)
@MultiValue(listType=java.util.ArrayList.class, minValues=1) @Argument(description="The first parameter is operation name, which is followed by list of arguments") public final void setParameters(List<String> parameters)
parameters - List of parameters. The first parameter is operation name@Option(name="q",
longName="quots",
description="Flag for quotation marks")
public final void setShowQuotationMarks(boolean showQuotationMarks)
showQuotationMarks - True if output is surrounded by quotation marksCopyright © 2008–2020. All rights reserved.