Package org.cyclopsgroup.jmxterm.cmd
Class UnsubscribeCommand
java.lang.Object
org.cyclopsgroup.jmxterm.Command
org.cyclopsgroup.jmxterm.cmd.UnsubscribeCommand
- All Implemented Interfaces:
org.cyclopsgroup.jcli.AutoCompletable
@Cli(name="unsubscribe",
description="Unsubscribe the notifications of an earlier subscribed bean",
note="Syntax is \n unsubscribe <bean>")
public class UnsubscribeCommand
extends Command
Command to subscribe to an MBean notification
Remove the subscription of an already subscribed notification listener. Notifications will no longer be sent to the session output.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.cyclopsgroup.jmxterm.Command
doSuggestArgument, doSuggestOption, getSession, isHelp, setHelp, setSession, suggestArgument, suggestOption
-
Constructor Details
-
UnsubscribeCommand
public UnsubscribeCommand()
-
-
Method Details
-
execute
Description copied from class:CommandExecute command- Specified by:
executein classCommand- Throws:
IOException- IO errorsJMException- JMX errorsMalformedObjectNameException
-
setBean
@Option(name="b", longName="bean", description="MBean to invoke") public final void setBean(String bean) - Parameters:
bean- Bean under which the operation is
-
setDomain
@Option(name="d", longName="domain", description="Domain of MBean to invoke") public final void setDomain(String domain) - Parameters:
domain- Domain under which is bean is
-