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

RMIRemoteMBeanProxy (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.jmx.adaptor.rmi
Class RMIRemoteMBeanProxy

java.lang.Object
  extended byorg.jboss.jmx.adaptor.rmi.RMIRemoteMBeanProxy
All Implemented Interfaces:
InvocationHandler, Serializable

public class RMIRemoteMBeanProxy
extends Object
implements Serializable, InvocationHandler

A factory for producing MBean proxies that run on a distant node and access the server through RMI. Most of the code comes from MBeanProxy.

Version:
$Revision: 1.3 $
Author:
Sacha Labourey.
See Also:
Serialized Form

Method Summary
static Object create(Class intf, javax.management.ObjectName name, javax.management.MBeanServer server)
          Create an MBean proxy.
static Object create(Class intf, String name, javax.management.MBeanServer server)
          Create an MBean proxy.
 javax.management.ObjectName getMBeanProxyObjectName()
           
 RMIAdaptor getMBeanProxyRMIAdaptor()
           
protected  RMIAdaptor getRmiAdaptor()
           
 Object invoke(Object proxy, Method method, Object[] args)
          Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown.

Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

getRmiAdaptor

protected RMIAdaptor getRmiAdaptor()
                            throws Exception
Throws:
Exception

getMBeanProxyObjectName

public final javax.management.ObjectName getMBeanProxyObjectName()

getMBeanProxyRMIAdaptor

public final RMIAdaptor getMBeanProxyRMIAdaptor()

create

public static Object create(Class intf,
                            String name,
                            javax.management.MBeanServer server)
                     throws Exception
Create an MBean proxy.

Parameters:
intf - The interface which the proxy will implement.
name - A string used to construct the ObjectName of the MBean to proxy to.
server - The MBeanServer that contains the MBean to proxy to.
Returns:
A MBean proxy.
Throws:
Exception - Invalid object name.

create

public static Object create(Class intf,
                            javax.management.ObjectName name,
                            javax.management.MBeanServer server)
                     throws Exception
Create an MBean proxy.

Parameters:
intf - The interface which the proxy will implement.
name - The name of the MBean to proxy invocations to.
server - The MBeanServer that contains the MBean to proxy to.
Returns:
A MBean proxy.
Throws:
Exception


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