public class MBeanServerNotificationFilter extends NotificationFilterSupport
MBeanServerNotification
。这种滤波器mbeanservernotification通知通过选择感兴趣的objectnames和操作(注册、注销、两)利益(相应的通知类型)。
这个班的serialVersionUID是2605900539589789736L
。
Constructor and Description |
---|
MBeanServerNotificationFilter()
创建一个过滤器,所有objectnames mbeanservernotification通知所有选择。
|
Modifier and Type | Method and Description |
---|---|
void |
disableAllObjectNames()
禁用任何mbeanservernotification(所有objectnames是取消选择)。
|
void |
disableObjectName(ObjectName objectName)
对给定的对象mbeanservernotifications禁用。
|
void |
enableAllObjectNames()
使所有mbeanservernotifications(所有objectnames选择)。
|
void |
enableObjectName(ObjectName objectName)
可以考虑对象mbeanservernotifications。
|
Vector<ObjectName> |
getDisabledObjectNames()
得到所有的objectnames禁用。
|
Vector<ObjectName> |
getEnabledObjectNames()
得到所有的objectnames启用。
|
boolean |
isNotificationEnabled(Notification notif)
在向侦听器发送指定的通知之前调用。
|
disableAllTypes, disableType, enableType, getEnabledTypes
public MBeanServerNotificationFilter()
public void disableAllObjectNames()
public void disableObjectName(ObjectName objectName) throws IllegalArgumentException
objectName
-对象不再感兴趣
IllegalArgumentException
-如果给定的对象是无效的
public void enableAllObjectNames()
public void enableObjectName(ObjectName objectName) throws IllegalArgumentException
objectName
-对象的兴趣
IllegalArgumentException
-如果给定的对象是无效的
public Vector<ObjectName> getEnabledObjectNames()
零意味着所有的objectnames隐式选择,除了objectnames明确取消
空是指所有的objectnames都取消,即没有对象选择。
public Vector<ObjectName> getDisabledObjectNames()
零意味着所有的objectnames隐式选择,除了明确选择objectnames
空是指所有的objectnames选择,即没有对象选择。
public boolean isNotificationEnabled(Notification notif) throws IllegalArgumentException
如果:
-有关MBean对象选择(显式或(隐式的和没有明确取消))
和
-操作的类型(注册或注销)的选择
然后通知发送给侦听器。
isNotificationEnabled
接口
NotificationFilter
isNotificationEnabled
方法重写,继承类
NotificationFilterSupport
notif
的通知送达。
IllegalArgumentException
如果空参数
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.