@Cli(name="beans",
description="List available beans under a domain or all domains",
note="Without -d option, current select domain is applied. If there\'s no domain specified, all beans are listed. Example:\n beans\n beans -d java.lang")
public class BeansCommand
extends Command
| Constructor and Description |
|---|
BeansCommand() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
doSuggestOption(String optionName)
Provide a list of possible option values for auto completion
|
void |
execute()
Execute command
|
static List<String> |
getBeans(Session session,
String domainName)
Get list of bean names under current domain
|
void |
setDomain(String domain) |
doSuggestArgument, getSession, isHelp, setHelp, setSession, suggestArgument, suggestOptionpublic static List<String> getBeans(Session session, String domainName) throws MalformedObjectNameException, IOException
session - Current JMX sessiondomainName - Full domain nameMalformedObjectNameException - Input domain name is malformedIOException - Communication errorpublic List<String> doSuggestOption(String optionName) throws IOException
CommanddoSuggestOption in class CommandoptionName - Name of optionIOException - Network communication errorspublic void execute()
throws MalformedObjectNameException,
IOException
Commandexecute in class CommandIOException - IO errorsMalformedObjectNameException@Option(name="d",
longName="domain",
displayName="domain",
description="Name of domain under which beans are listed")
public final void setDomain(String domain)
domain - Domain under which beans are listedCopyright © 2008–2020. All rights reserved.