com.sun.jdmk
Class TraceNotification

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.management.Notification
              |
              +--com.sun.jdmk.TraceNotification
All Implemented Interfaces:
Serializable

public class TraceNotification
extends Notification

This class defines an object used by the class Trace to send out all internal runtime information.

See Also:
Serialized Form

Field Summary
 String className
          The name of the class from which the information comes
 Throwable exception
          The exception sent out by the class Trace.
 long globalSequenceNumber
          Global sequence number representing the place of this notification in all notification sequence.
 String info
          The information sent out by the class Trace.
 int level
          The level of information.
 String methodName
          The name of the method from which the information comes.
 long sequenceNumber
          Sequence number representing the place of this notification in the sequence of all same type notifications
 String threadName
          The name of the thread which created this notification.
 int type
          The type of information.
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
TraceNotification(Object source, long sequenceNumber, long globalSequenceNumber, int level, int type, String className, String methodName, String info, Throwable exception)
          Construct a TraceNotification object.
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

level

public int level
The level of information.


type

public int type
The type of information.


className

public String className
The name of the class from which the information comes


methodName

public String methodName
The name of the method from which the information comes.


info

public String info
The information sent out by the class Trace.

It can be null if an exception is provided as information.


exception

public Throwable exception
The exception sent out by the class Trace.

It can be null if a string is provided as information.


globalSequenceNumber

public long globalSequenceNumber
Global sequence number representing the place of this notification in all notification sequence.


sequenceNumber

public long sequenceNumber
Sequence number representing the place of this notification in the sequence of all same type notifications


threadName

public String threadName
The name of the thread which created this notification.

Since:
JDMK 5.0
Constructor Detail

TraceNotification

public TraceNotification(Object source,
                         long sequenceNumber,
                         long globalSequenceNumber,
                         int level,
                         int type,
                         String className,
                         String methodName,
                         String info,
                         Throwable exception)
Construct a TraceNotification object.

Parameters:
source - the emitter of the notification.
sequenceNumber - the sequence number representing the place of this notification in the sequence of all same type notifications.
globalSequenceNumber - the global sequence number representing the place of this notification in all notifications sent out by the class Trace.
level - the level of information.
type - the type of the information.
className - the name of the class from which the information is from.
methodName - the name of the method from which the information is from.
info - an string as the trace information.
exception - an exception as the trace information.

JMX 1.2_8   2002.10.31_20:03:55_MET

Copyright 1999-2002 Sun Microsystems, Inc.   901 San Antonio Road Palo Alto, California, 94303, U.S.A.   All Rights Reserved.