Tracer
objects that may be obtained from the
SbbContext
for SBBs, the ProfileContext
for profiles, or the ResourceAdaptorContext
for resource adaptor
entities.public interface TraceFacility
TraceMBean
object.
The Trace Facility is non-transactional. The effects of operations invoked on this facility occur regardless of the state or outcome of any enclosing transaction.
java:comp/env/slee/facilities/trace
TraceMBean
,
TraceNotification
Modifier and Type | Method and Description |
---|---|
void |
createTrace(ComponentID messageSource,
Level traceLevel,
String messageType,
String message,
long timestamp)
Deprecated.
This method uses a
ComponentID to identify a notification
source and thus was not flexible enough to be used by other objects in the
SLEE. It has been replaced with Tracer.trace(TraceLevel, String) . |
void |
createTrace(ComponentID messageSource,
Level traceLevel,
String messageType,
String message,
Throwable cause,
long timestamp)
Deprecated.
This method uses a
ComponentID to identify a notification
source and thus was not flexible enough to be used by other objects in the
SLEE. It has been replaced with Tracer.trace(TraceLevel, String, Throwable) . |
Level |
getTraceLevel(ComponentID messageSource)
Deprecated.
This method uses a
ComponentID to identify a notification
source and thus was not flexible enough to be used by other objects in the
SLEE. It has been replaced with Tracer.getTraceLevel() . |
Level getTraceLevel(ComponentID messageSource) throws NullPointerException, UnrecognizedComponentException, FacilityException
ComponentID
to identify a notification
source and thus was not flexible enough to be used by other objects in the
SLEE. It has been replaced with Tracer.getTraceLevel()
.This method is a non-transactional method.
messageSource
- the component identifier.NullPointerException
- if id
is null
.UnrecognizedComponentException
- if id
is not a recognizable
ComponentID
object for the SLEE or it does not correspond
with a component installed in the SLEE.FacilityException
- if the trace level could not be obtained due to a
system-level failure.void createTrace(ComponentID messageSource, Level traceLevel, String messageType, String message, long timestamp) throws NullPointerException, IllegalArgumentException, UnrecognizedComponentException, FacilityException
ComponentID
to identify a notification
source and thus was not flexible enough to be used by other objects in the
SLEE. It has been replaced with Tracer.trace(TraceLevel, String)
.This method is a non-transactional method.
messageSource
- the identifier of the component that is emitting the trace message.traceLevel
- the logging level of the trace message.messageType
- a string denoting the type of the trace message.message
- the trace message.timestamp
- the time (in ms since January 1, 1970 UTC) that the message was generated.NullPointerException
- if any parameter is null
.IllegalArgumentException
- if traceLevel ==
Level.OFF
.UnrecognizedComponentException
- if messageSource
is not a recognizable
ComponentID
object for the SLEE or it does not correspond
with a component installed in the SLEE.FacilityException
- if the trace could not be generated due to a system-level failure.void createTrace(ComponentID messageSource, Level traceLevel, String messageType, String message, Throwable cause, long timestamp) throws NullPointerException, IllegalArgumentException, UnrecognizedComponentException, FacilityException
ComponentID
to identify a notification
source and thus was not flexible enough to be used by other objects in the
SLEE. It has been replaced with Tracer.trace(TraceLevel, String, Throwable)
.This method is a non-transactional method.
messageSource
- the identifier of the component that is emitting the trace message.traceLevel
- the logging level of the trace message.messageType
- a string denoting the type of the trace message.message
- the trace message.cause
- the reason (if any) this trace message was generated.timestamp
- the time (in ms since January 1, 1970 UTC) that the message was generated.NullPointerException
- if any parameter is null
.IllegalArgumentException
- if traceLevel ==
Level.OFF
.UnrecognizedComponentException
- if messageSource
is not a recognizable
ComponentID
object for the SLEE or it does not correspond
with a component installed in the SLEE.FacilityException
- if the trace could not be generated due to a system-level failure.