站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

XMLAdaptorImpl (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.jmx.adaptor.xml
Class XMLAdaptorImpl

java.lang.Object
  extended byorg.jboss.jmx.adaptor.xml.XMLAdaptorImpl
All Implemented Interfaces:
XMLAdaptor

public class XMLAdaptorImpl
extends Object
implements XMLAdaptor

XML Adaptor Implementation interpreting the XML wrapped JMX commands.

Version:
$Revision: 1.4 $
Author:
Andreas Schaefer (andreas.schaefer@madplanet.com)

Field Summary
protected static org.jboss.logging.Logger log
           
protected static Hashtable mPrimitives
          Primitive type name -> class map.
protected  javax.management.MBeanServer mServer
           
 
Constructor Summary
XMLAdaptorImpl(javax.management.MBeanServer pServer)
          Constructor for the XMLAdaptorImpl object
 
Method Summary
protected  Object[] applyAttributes(javax.management.ObjectName pName, String[] pNames, Object[] pValues)
           
 javax.management.ObjectName createMBean(String pCodebase, javax.management.ObjectName pName, NodeList pConstructor, NodeList pAttributes)
           
protected  javax.management.ObjectName createObjectName(Element pObjectName)
           
protected  javax.management.ObjectName createObjectName(String pName)
           
 Object[] get(javax.management.ObjectName pName, NodeList pAttributes)
           
protected  Object[][] getAttributes(NodeList pAttributes)
          Returns a list of attribute objects and types of a given Node List which must contain a attribute "type" and a text child.
protected  Object[][] getAttributes(javax.management.ObjectName pName, NodeList pAttributes)
          Returns a list of attribute objects and name of a given Node List which must contain a attribute "name" and a text child.
protected  Object[] getAttributeValues(javax.management.AttributeList pList)
           
 javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName pName)
           
 javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName pName)
           
protected  javax.management.ObjectName getObjectName(NodeList pObjectName)
           
protected  javax.management.ObjectName getObjectName(String pName, NodeList pObjectName)
           
 Object invoke(String pOperation, javax.management.ObjectName pName, NodeList pAttributes)
           
 Object[] invokeXML(Document pJmxOperations)
          Performs a set of calls to the MBean Server and returns it return values.
 Object invokeXML(Element pJmxOperation)
          Performs a single call to the MBean Server and return its return value
 Boolean isInstanceOf(javax.management.ObjectName pName, String pCodebase)
           
 Boolean isRegistered(javax.management.ObjectName pName)
           
 Object[] set(javax.management.ObjectName pName, NodeList pAttributes)
           
 void unregisterMBean(javax.management.ObjectName pName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.jboss.logging.Logger log

mPrimitives

protected static Hashtable mPrimitives
Primitive type name -> class map.


mServer

protected javax.management.MBeanServer mServer
Constructor Detail

XMLAdaptorImpl

public XMLAdaptorImpl(javax.management.MBeanServer pServer)
Constructor for the XMLAdaptorImpl object

Parameters:
pServer - MBeanServer this adaptor executes its calls on
Method Detail

invokeXML

public Object[] invokeXML(Document pJmxOperations)
                   throws Exception
Performs a set of calls to the MBean Server and returns it return values.

Specified by:
invokeXML in interface XMLAdaptor
Parameters:
pJmxOperations - Complete XML Document (compliant to the XMLAdaptor.dtd) containing a list of calls to the MBean Server.
Returns:
List of return values, one for each call. If the call doesn't have a return value of the operation failed it will be null.
Throws:
Exception

invokeXML

public Object invokeXML(Element pJmxOperation)
                 throws Exception
Performs a single call to the MBean Server and return its return value

Specified by:
invokeXML in interface XMLAdaptor
Parameters:
pJmxOperation - Second level element (compliant to XMLAdaptor.dtd) representing one call to the MBean Server
Returns:
Return value of the call or null if call failed or doesn't have a return value.
Throws:
Exception

createMBean

public javax.management.ObjectName createMBean(String pCodebase,
                                               javax.management.ObjectName pName,
                                               NodeList pConstructor,
                                               NodeList pAttributes)
                                        throws Exception
Throws:
Exception

invoke

public Object invoke(String pOperation,
                     javax.management.ObjectName pName,
                     NodeList pAttributes)
              throws Exception
Throws:
Exception

get

public Object[] get(javax.management.ObjectName pName,
                    NodeList pAttributes)
             throws Exception
Throws:
Exception

set

public Object[] set(javax.management.ObjectName pName,
                    NodeList pAttributes)
             throws Exception
Throws:
Exception

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName pName)
                                        throws Exception
Throws:
Exception

getObjectInstance

public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName pName)
                                                  throws Exception
Throws:
Exception

isInstanceOf

public Boolean isInstanceOf(javax.management.ObjectName pName,
                            String pCodebase)
                     throws Exception
Throws:
Exception

isRegistered

public Boolean isRegistered(javax.management.ObjectName pName)
                     throws Exception
Throws:
Exception

unregisterMBean

public void unregisterMBean(javax.management.ObjectName pName)
                     throws Exception
Throws:
Exception

getObjectName

protected javax.management.ObjectName getObjectName(NodeList pObjectName)
                                             throws Exception
Throws:
Exception

getObjectName

protected javax.management.ObjectName getObjectName(String pName,
                                                    NodeList pObjectName)
                                             throws Exception
Throws:
Exception

createObjectName

protected javax.management.ObjectName createObjectName(String pName)
                                                throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

createObjectName

protected javax.management.ObjectName createObjectName(Element pObjectName)
                                                throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

getAttributes

protected Object[][] getAttributes(NodeList pAttributes)
                            throws Exception
Returns a list of attribute objects and types of a given Node List which must contain a attribute "type" and a text child.

Parameters:
pAttributes - List of nodes containing the attribute types and values
Returns:
First Array contains the objects created from the type and value string, Second Array contains the types as String
Throws:
Exception

getAttributes

protected Object[][] getAttributes(javax.management.ObjectName pName,
                                   NodeList pAttributes)
                            throws Exception
Returns a list of attribute objects and name of a given Node List which must contain a attribute "name" and a text child.

Parameters:
pAttributes - List of nodes containing the attribute types and values
Returns:
First Array contains the objects created from the type and value string, Second Array contains the Attribute Names as String
Throws:
Exception

applyAttributes

protected Object[] applyAttributes(javax.management.ObjectName pName,
                                   String[] pNames,
                                   Object[] pValues)
                            throws Exception
Throws:
Exception

getAttributeValues

protected Object[] getAttributeValues(javax.management.AttributeList pList)


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