| 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.NotificationFilterSupport
javax.management.relation.MBeanServerNotificationFilter
public class MBeanServerNotificationFilter
MBeanServerNotification 的过滤器。此过滤器通过选择感兴趣的 ObjectName 和感兴趣的操作(包括注册和注销)(对应于通知类型)对 MBeanServerNotification 通知进行过滤。
| 构造方法摘要 | |
|---|---|
MBeanServerNotificationFilter()
创建一个选中所有 ObjectName 的所有 MBeanServerNotification 通知的过滤器。  | 
|
| 方法摘要 | |
|---|---|
 void | 
disableAllObjectNames()
禁用任何 MBeanServerNotification(取消选中所有的 ObjectName)。  | 
 void | 
disableObjectName(ObjectName theObjName)
禁用与给定 ObjectName 有关的 MBeanServerNotification。  | 
 void | 
enableAllObjectNames()
启用所有 MBeanServerNotification(选中所有 ObjectName)。  | 
 void | 
enableObjectName(ObjectName theObjName)
启用与给定 ObjectName 有关的 MBeanServerNotification。  | 
 Vector | 
getDisabledObjectNames()
获取禁用的所有 ObjectName。  | 
 Vector | 
getEnabledObjectNames()
获取所有已启用的 ObjectName。  | 
 boolean | 
isNotificationEnabled(Notification theNtf)
向侦听器发送指定通知之前调用。  | 
| 从类 javax.management.NotificationFilterSupport 继承的方法 | 
|---|
disableAllTypes, disableType, enableType, getEnabledTypes | 
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public MBeanServerNotificationFilter()
| 方法详细信息 | 
|---|
public void disableAllObjectNames()
public void disableObjectName(ObjectName theObjName) throws IllegalArgumentException
theObjName - 不再感兴趣的 ObjectName
IllegalArgumentException - 如果给定的 ObjectName 为 nullpublic void enableAllObjectNames()
public void enableObjectName(ObjectName theObjName) throws IllegalArgumentException
theObjName - 感兴趣的 ObjectName
IllegalArgumentException - 如果给定的 ObjectName 为 nullpublic Vector getEnabledObjectNames()
- null 意味着隐式选中所有 ObjectName,除了显式取消选中的 ObjectName 之外
- 空意味着取消选中所有 ObjectName,即不选中任何 ObjectName。
public Vector getDisabledObjectNames()
- null 意味着隐式取消选中所有 ObjectName,除了显式选中的 ObjectName 之外
- 空意味着选中所有 ObjectName,即不取消选中任何 ObjectName。
public boolean isNotificationEnabled(Notification theNtf) throws IllegalArgumentException
如果:
- 选中与 MBean 相关的 ObjectName(显式,或者(隐式但不显式地取消选中))
并且
- 选中操作类型(注册或注销)
则向侦听器发送通知。
theNtf - 将发送的通知。
IllegalArgumentException - 如果是 null 参数
  | 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。