JavaTM 2 Platform
Standard Ed. 5.0

接口 javax.management.MBeanServerConnection
的使用

使用 MBeanServerConnection 的软件包
java.lang.management 提供管理接口,用于监视和管理 Java 虚拟机以及 Java 虚拟机在其上运行的操作系统。 
javax.management 提供 Java Management Extensions 的核心类。 
javax.management.remote 对 JMX MBean 服务器进行远程访问使用的接口。 
javax.management.remote.rmi RMI 连接器是供 JMX Remote API 使用的一种连接器,后者使用 RMI 将客户端请求传输到远程 MBean 服务器。 
 

java.lang.managementMBeanServerConnection 的使用
 

参数类型为 MBeanServerConnectionjava.lang.management 中的方法
static
<T> T
ManagementFactory.newPlatformMXBeanProxy(MBeanServerConnection connection, String mxbeanName, Class<T> mxbeanInterface)
          返回用于给定 MXBean 名称的平台 MXBean 接口的代理,以便通过给定 MBeanServerConnection 转发其方法调用。
 

javax.managementMBeanServerConnection 的使用
 

javax.managementMBeanServerConnection 的子接口
 interface MBeanServer
          这是在代理端进行 MBean 操作的接口。
 

参数类型为 MBeanServerConnectionjavax.management 中的方法
static Object MBeanServerInvocationHandler.newProxyInstance(MBeanServerConnection connection, ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster)
          返回一个代理,该代理通过将代理的方法从给定的 MBean 服务器转发到指定 MBean 来实现给定的接口。
 

参数类型为 MBeanServerConnectionjavax.management 中的构造方法
MBeanServerInvocationHandler(MBeanServerConnection connection, ObjectName objectName)
          通过 MBean 服务器转发方法的调用处理程序。
 

javax.management.remoteMBeanServerConnection 的使用
 

javax.management.remoteMBeanServerConnection 的子接口
 interface MBeanServerForwarder
          此类的对象实现 MBeanServer 接口并包装另一个也实现此接口的对象。
 

返回 MBeanServerConnectionjavax.management.remote 中的方法
 MBeanServerConnection JMXConnector.getMBeanServerConnection()
          返回一个代表远程 MBean 服务器的 MBeanServerConnection 对象。
 MBeanServerConnection JMXConnector.getMBeanServerConnection(Subject delegationSubject)
          返回 MBeanServerConnection 对象,它表示在其上执行代表提供的委托主题操作的远程 MBean 服务器。
 

javax.management.remote.rmiMBeanServerConnection 的使用
 

返回 MBeanServerConnectionjavax.management.remote.rmi 中的方法
 MBeanServerConnection RMIConnector.getMBeanServerConnection()
           
 MBeanServerConnection RMIConnector.getMBeanServerConnection(Subject delegationSubject)
           
 


JavaTM 2 Platform
Standard Ed. 5.0

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策