|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--javax.management.Notification | +--javax.slee.management.TraceNotification
This notification is emitted by a TraceMBean
object when an installed
component generates a trace message at a level high enough not to be filtered
by the TraceMBean
.
The notification type of all trace notifications is specified by the
TraceMBean.TRACE_NOTIFICATION_TYPE
attribute.
Fields inherited from class javax.management.Notification |
source |
Constructor Summary | |
TraceNotification(TraceMBean notificationSource,
java.lang.String messageType,
java.lang.Object messageSource,
Level traceLevel,
java.lang.String message,
java.lang.Throwable cause,
long sequenceNumber,
long timeStamp)
Create a TraceNotification to notify listeners of a trace message. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare this notification for equality with another object. |
java.lang.Throwable |
getCause()
Get the cause (if any) for this trace notification. |
Level |
getLevel()
Get the trace level of the trace message. |
java.lang.Object |
getMessageSource()
Get the object that identifies the source of the trace message. |
java.lang.String |
getMessageType()
Get the type of the trace message. |
int |
hashCode()
Get a hash code value for this notification. |
java.lang.String |
toString()
Get a string representation for this notification. |
Methods inherited from class javax.management.Notification |
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TraceNotification(TraceMBean notificationSource, java.lang.String messageType, java.lang.Object messageSource, Level traceLevel, java.lang.String message, java.lang.Throwable cause, long sequenceNumber, long timeStamp) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
TraceNotification
to notify listeners of a trace message.notificationSource
- the TraceMBean
object that is emitting
this notification.messageType
- the type of the trace message being generated and
correspondingly the sub-type of the notification.messageSource
- a component identifier that identifies the component that
generated the trace message, for example an SbbID
.traceLevel
- the trace level.message
- the trace message.cause
- an optional cause for the trace message.sequenceNumber
- the notification sequence number within the source
TraceMBean
object.timeStamp
- the time (in ms since January 1, 1970 UTC) that the trace message
was generated.java.lang.NullPointerException
- if notificationSource
, messageType
,
traceLevel
, or message
is null
.java.lang.IllegalArgumentException
- if traceLevel ==
Level.OFF
.Method Detail |
public final java.lang.String getMessageType()
public final java.lang.Object getMessageSource()
public final Level getLevel()
public final java.lang.Throwable getCause()
null
if there wasn't a cause.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare this with.true
if obj
is an instance of this class and the
message type, message source, trace level and message attributes of obj
are the same as the corresponding attributes of this
.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |