|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationFilterSupport
An implementation of the NotificationFilter
(src) interface.
It filters on the notification type. It Maintains a list of enabled notification types. By default no notifications are enabled.
The enabled types are prefixes. That is a notification is enabled if it starts with an enabled string.
Constructor Summary | |
NotificationFilterSupport()
Create a filter that filters out all notification types. |
Method Summary | |
void |
disableAllTypes()
Disable all notification types. |
void |
disableType(java.lang.String type)
Disable a notification type. |
void |
enableType(java.lang.String type)
Enable a notification type. |
java.util.Vector |
getEnabledTypes()
Get all the enabled notification types. |
boolean |
isNotificationEnabled(Notification (src) notification)
Test to see whether this notification is enabled |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NotificationFilterSupport()
Method Detail |
public void disableAllTypes()
public void disableType(java.lang.String type)
type
- the notification type to disable.public void enableType(java.lang.String type) throws java.lang.IllegalArgumentException
type
- the notification type to enable.
java.lang.IllegalArgumentException
- for a null typepublic java.util.Vector getEnabledTypes()
Returns a vector of enabled notification type.
An empty vector means all types disabled.
public java.lang.String toString()
public boolean isNotificationEnabled(Notification (src) notification)
isNotificationEnabled
in interface NotificationFilter (src)
notification
- the notification to filter
java.lang.IllegalArgumentException
- for null notification.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |