org.jboss.jmx.adaptor.control
Class Server

java.lang.Object
  extended by org.jboss.jmx.adaptor.control.Server

public class Server
extends Object

Utility methods related to the MBeanServer interface

Version:
$Revision: 81038 $
Author:
Scott.Stark@jboss.org, Dimitris Andreadis

Constructor Summary
Server()
           
 
Method Summary
static Iterator getDomainData(String filter)
           
static String getMBeanAttribute(String name, String attrName)
           
static Object getMBeanAttributeObject(String name, String attrName)
           
static AttrResultInfo getMBeanAttributeResultInfo(String name, MBeanAttributeInfo attrInfo)
           
static MBeanData getMBeanData(String name)
           
static MBeanServer getMBeanServer()
           
static OpResultInfo invokeOp(String name, int index, String[] args)
           
static OpResultInfo invokeOpByName(String name, String opName, String[] argTypes, String[] args)
           
static AttributeList setAttributes(String name, HashMap attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

getMBeanServer

public static MBeanServer getMBeanServer()

getDomainData

public static Iterator getDomainData(String filter)
                              throws JMException
Throws:
JMException

getMBeanData

public static MBeanData getMBeanData(String name)
                              throws JMException
Throws:
JMException

getMBeanAttributeObject

public static Object getMBeanAttributeObject(String name,
                                             String attrName)
                                      throws JMException
Throws:
JMException

getMBeanAttribute

public static String getMBeanAttribute(String name,
                                       String attrName)
                                throws JMException
Throws:
JMException

getMBeanAttributeResultInfo

public static AttrResultInfo getMBeanAttributeResultInfo(String name,
                                                         MBeanAttributeInfo attrInfo)
                                                  throws JMException
Throws:
JMException

setAttributes

public static AttributeList setAttributes(String name,
                                          HashMap attributes)
                                   throws JMException
Throws:
JMException

invokeOp

public static OpResultInfo invokeOp(String name,
                                    int index,
                                    String[] args)
                             throws JMException
Throws:
JMException

invokeOpByName

public static OpResultInfo invokeOpByName(String name,
                                          String opName,
                                          String[] argTypes,
                                          String[] args)
                                   throws JMException
Throws:
JMException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.