| Constructor and Description |
|---|
SetCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
doSuggestArgument()
Provide a list of possible arguments for auto completion.
|
protected List<String> |
doSuggestOption(String optionName)
Provide a list of possible option values for auto completion
|
void |
execute()
Execute command
|
void |
setArguments(List<String> arguments) |
void |
setBean(String bean) |
void |
setDomain(String domain) |
getSession, isHelp, setHelp, setSession, suggestArgument, suggestOptionprotected List<String> doSuggestArgument() throws IOException, JMException
CommanddoSuggestArgument in class CommandIOException - IO errorsJMException - JMX problemoprotected List<String> doSuggestOption(String optionName) throws JMException
CommanddoSuggestOption in class CommandoptionName - Name of optionJMException - JMX errorspublic void execute()
throws JMException,
IOException
Commandexecute in class CommandJMException - JMX errorsIOException - IO errors@MultiValue(listType=java.util.ArrayList.class, minValues=2) @Argument(description="name, value, value2...") public final void setArguments(List<String> arguments)
arguments - Argument list. The first argument is attribute name@Option(name="b",
longName="bean",
description="MBean name where the attribute is. Optional if bean has been set")
public final void setBean(String bean)
bean - Bean where the attribute is@Option(name="d",
longName="domain",
description="Domain under which the bean is")
public final void setDomain(String domain)
domain - Domain where the bean isCopyright © 2008–2019. All rights reserved.