@Cli(name="unsubscribe",
description="Unsubscribe the notifications of an earlier subscribed bean",
note="Syntax is \n unsubscribe <bean>")
public class UnsubscribeCommand
extends Command
| Constructor and Description |
|---|
UnsubscribeCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute command
|
void |
setBean(String bean) |
void |
setDomain(String domain) |
doSuggestArgument, doSuggestOption, getSession, isHelp, setHelp, setSession, suggestArgument, suggestOptionpublic 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 isCopyright © 2008–2019. All rights reserved.