|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jdmk.TraceFilter
This class is used to filter trace information. The class Trace needs an object of this class for each listener.
Field Summary | |
protected int |
levels
|
protected int |
types
|
Constructor Summary | |
TraceFilter(int levels,
int types)
Construct a TraceFilter object with the levels and types selected. |
Method Summary | |
int |
getLevels()
get the levels selected |
int |
getTypes()
get types selected |
boolean |
isNotificationEnabled(Notification notification)
Implement the interface NotificationFilter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int levels
protected int types
Constructor Detail |
public TraceFilter(int levels, int types) throws IllegalArgumentException
levels
- the selected levels of trace information.types
- the selected types of the trace information.
IllegalArgumentException
- Thrown if the specified types or
levels are illegal.Method Detail |
public boolean isNotificationEnabled(Notification notification)
isNotificationEnabled
in interface NotificationFilter
notification
- the notification to be sent.
true
if the notification has to be sent to the listener, false
otherwise.public int getLevels()
public int getTypes()
|
JMX 1.2_8 2002.10.31_20:03:55_MET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |