|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.MBeanServerDelegate
public class MBeanServerDelegate
从管理的观点表示 MBean 服务器。在 MBean 服务器中注册/注销 MBean 时,MBeanServerDelegate MBean 发出 MBeanServerNotifications。
| 构造方法摘要 | |
|---|---|
MBeanServerDelegate()
创建一个 MBeanServerDelegate 对象。 |
|
| 方法摘要 | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
向此 MBean 添加一个侦听器。 |
String |
getImplementationName()
返回 JMX 实现名(此产品的名称)。 |
String |
getImplementationVendor()
返回 JMX 实现供应商(此产品的供应商)。 |
String |
getImplementationVersion()
返回 JMX 实现版本(此产品的版本)。 |
String |
getMBeanServerId()
返回 MBean 服务器代理标识。 |
MBeanNotificationInfo[] |
getNotificationInfo()
返回一个数组,指示此 MBean 可能发送的每个通知的 Java 类名和通知类型。 |
String |
getSpecificationName()
返回此产品实现的 JMX 规范的全名。 |
String |
getSpecificationVendor()
返回此产品实现的 JMX 规范的供应商。 |
String |
getSpecificationVersion()
返回此产品实现的 JMX 规范的版本。 |
void |
removeNotificationListener(NotificationListener listener)
从此 MBean 移除一个侦听器。 |
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
从此 MBean 中移除一个侦听器。 |
void |
sendNotification(Notification notification)
允许 MBean 服务器发送通知。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public MBeanServerDelegate()
| 方法详细信息 |
|---|
public String getMBeanServerId()
MBeanServerDelegateMBean 中的 getMBeanServerIdpublic String getSpecificationName()
MBeanServerDelegateMBean 中的 getSpecificationNamepublic String getSpecificationVersion()
public String getSpecificationVendor()
public String getImplementationName()
public String getImplementationVersion()
public String getImplementationVendor()
public MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster 复制的描述返回一个数组,指示此 MBean 可能发送的每个通知的 Java 类名和通知类型。
MBean 发送此数组中未描述的通知是合法的。但是,某些 MBean 服务器的客户端要想正常运行,可能要依赖于完整的数组。
NotificationBroadcaster 中的 getNotificationInfopublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
NotificationBroadcaster 复制的描述
listener - 将处理广播者所发出的通知的侦听器对象。filter - 过滤器对象。如果 filter 为 null,则处理通知前不执行过滤。handback - 发出通知时要发送到侦听器的不透明对象。Notification 广播者对象不能使用此对象。应该不作更改并带有通知的情况下将其重新发送到侦听器。
IllegalArgumentException - 如果 Listener 参数为 null。NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
NotificationEmitter 复制的描述从此 MBean 中移除一个侦听器。该 MBean 必须有一个与给定 listener、filter 和 handback 参数完全相符的侦听器。如果有多个此种侦听器,则只移除一个。
当且仅当 filter 和 handback 在要移除的侦听器中为 null 时,这两个参数才可以为 null。
listener - 以前添加到此 MBean 的侦听器。filter - 添加侦听器时所指定的过滤器。handback - 添加侦听器时所指定的回调。
ListenerNotFoundException - 如果侦听器未向该 MBean 注册,或者没有用给定的过滤器和回调注册它。public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
NotificationBroadcaster 复制的描述
listener - 以前添加到此 MBean 的侦听器。
ListenerNotFoundException - 如果该侦听器未向 MBean 注册。NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object),
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)public void sendNotification(Notification notification)
notification - 要发送的通知。
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。