FileDocCategorySizeDatePackage
TraceDestination.javaAPI DocJava SE 6 API2380Tue Jun 10 00:22:10 BST 2008com.sun.jmx.trace

TraceDestination

public interface TraceDestination
Defines the methods that a trace destination must implement.
since
1.5
since.unbundled
JMX RI 1.2

Fields Summary
Constructors Summary
Methods Summary
public booleanisSelected(int level, int type)
Verify whether the specified info level and the info type are selected by a listener.

It is strongly recommended to call this method before sending information to this Trace class.

param
level the level of trace information.
param
type the type of the trace information.

public voidreset()
Reset the trace destination. The behavior of this method is implementation dependent. It could be used, for instance, to (re)initialize the traces according to some default System properties, or to flush (empty) the log file, etc...

public booleansend(int level, int type, java.lang.String className, java.lang.String methodName, java.lang.String info)
Send a new information to this Trace destination

param
level the level of trace information to be sent.
param
type the type of trace information to be sent.
param
className the name of the class from which the trace information is from.
param
methodName the name of the method from which the trace information is from.
param
info the trace information to be sent.
return
false if the level and the type are not selected.

public booleansend(int level, int type, java.lang.String className, java.lang.String methodName, java.lang.Throwable exception)
Send an exception to this Trace class.

param
level the level of trace information to be sent.
param
type the type of trace information to be sent.
param
className the name of the class from which the trace information is from.
param
methodName the name of the method from which the trace information is from.
param
exception exception sent as the trace information.