|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the methods that a trace destination must implement.
Method Summary | |
boolean |
isSelected(int level,
int type)
Verify whether the specified info level and the info type are selected by a listener. |
void |
reset()
Reset the trace destination. |
boolean |
send(int level,
int type,
String className,
String methodName,
String info)
Send a new information to this Trace destination |
boolean |
send(int level,
int type,
String className,
String methodName,
Throwable exception)
Send an exception to this Trace class. |
Method Detail |
public boolean isSelected(int level, int type)
It is strongly recommended to call this method before sending information to this Trace class.
level
- the level of trace information.type
- the type of the trace information.public boolean send(int level, int type, String className, String methodName, String info)
level
- the level of trace information to be sent.type
- the type of trace information to be sent.className
- the name of the class from which the trace
information is from.methodName
- the name of the method from which the trace
information is from.info
- the trace information to be sent.
public boolean send(int level, int type, String className, String methodName, Throwable exception)
level
- the level of trace information to be sent.type
- the type of trace information to be sent.className
- the name of the class from which the trace
information is from.methodName
- the name of the method from which the trace
information is from.exception
- exception sent as the trace information.public void reset() throws IOException
IOException
|
JMX 1.2_8 2002.10.31_20:03:55_MET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |