org.jboss.console.twiddle.command
Class MBeanServerCommand

java.lang.Object
  extended by org.jboss.console.twiddle.command.AbstractCommand
      extended by org.jboss.console.twiddle.command.MBeanServerCommand
All Implemented Interfaces:
Cloneable, Command
Direct Known Subclasses:
CreateCommand, GetCommand, InfoCommand, InvokeCommand, JSR77Command, QueryCommand, ServerInfoCommand, SetAttrsCommand, SetCommand, UnregisterCommand, XMBeanCommand

public abstract class MBeanServerCommand
extends AbstractCommand

An abstract command to opperate on an MBeanServer.

Version:
$Revision: 1.6.6.1 $
Author:
Jason Dillon, Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.console.twiddle.command.AbstractCommand
context, desc, log, name
 
Constructor Summary
protected MBeanServerCommand(String name, String desc)
           
 
Method Summary
protected  javax.management.ObjectName createObjectName(String name)
           
protected  javax.management.MBeanServerConnection getMBeanServer()
           
protected  javax.management.ObjectName[] queryMBeans(String query)
           
 
Methods inherited from class org.jboss.console.twiddle.command.AbstractCommand
clone, getDescription, getName, setCommandContext, unsetCommandContext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.console.twiddle.command.Command
displayHelp, execute
 

Constructor Detail

MBeanServerCommand

protected MBeanServerCommand(String name,
                             String desc)
Method Detail

createObjectName

protected javax.management.ObjectName createObjectName(String name)
                                                throws CommandException
Throws:
CommandException

getMBeanServer

protected javax.management.MBeanServerConnection getMBeanServer()

queryMBeans

protected javax.management.ObjectName[] queryMBeans(String query)
                                             throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.