Constructor and Description |
---|
GetCommand() |
Modifier and Type | Method and Description |
---|---|
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 |
setAttributes(List<String> attributes) |
void |
setBean(String bean) |
void |
setDelimiter(String delimiter) |
void |
setDomain(String domain) |
void |
setShowDescription(boolean showDescription) |
void |
setShowQuotationMarks(boolean noQuotationMarks) |
void |
setSimpleFormat(boolean simpleFormat) |
void |
setSingleLine(boolean singleLine) |
getSession, isHelp, setHelp, setSession, suggestArgument, suggestOption
public List<String> doSuggestArgument() throws IOException, JMException
Command
doSuggestArgument
in class Command
IOException
- IO errorsJMException
- JMX problemoprotected List<String> doSuggestOption(String optionName) throws JMException
Command
doSuggestOption
in class Command
optionName
- Name of optionJMException
- JMX errorspublic void execute() throws JMException, IOException
Command
execute
in class Command
JMException
- JMX errorsIOException
- IO errors@MultiValue(listType=java.util.ArrayList.class, minValues=1) @Argument(displayName="attr", description="Name of attributes to select") public final void setAttributes(List<String> attributes)
attributes
- List of attribute names@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 under which attribute is get@Option(name="d", longName="domain", description="Domain of bean, optional") public final void setDomain(String domain)
domain
- Domain under which bean is selected@Option(name="i", longName="info", description="Show detail information of each attribute") public final void setShowDescription(boolean showDescription)
showDescription
- True to show detail description@Option(name="q", longName="quots", description="Quotation marks around value") public final void setShowQuotationMarks(boolean noQuotationMarks)
noQuotationMarks
- True if value is not surrounded by quotation marsk@Option(name="s", longName="simple", description="Print simple expression of value without full expression") public final void setSimpleFormat(boolean simpleFormat)
simpleFormat
- True if value is printed out in a simple format without full expression@Option(name="l", longName="delimiter", description="Sets an optional delimiter to be printed after the value") public final void setDelimiter(String delimiter)
@Option(name="n", longName="singleLine", description="Prints result without a newline - default is false") public final void setSingleLine(boolean singleLine)
Copyright © 2008–2018. All rights reserved.