| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.MBeanServerDelegate
public class MBeanServerDelegate
从管理的角度表示 MBean 服务器。在 MBean 服务器中注册/注销 MBean 时,MBeanServerDelegate MBean 发出 MBeanServerNotifications。
| 字段摘要 | |
|---|---|
static ObjectName | 
DELEGATE_NAME
定义 MBeanServerDelegate 的默认 ObjectName。  | 
| 构造方法摘要 | |
|---|---|
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 static final ObjectName DELEGATE_NAME
| 构造方法详细信息 | 
|---|
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 Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。