public interface TraceMBean extends TraceMBean
OBJECT_NAME, TRACE_NOTIFICATION_TYPE| Modifier and Type | Method and Description |
|---|---|
String |
getLogkeyForTracer(NotificationSource notificationSource,
String tracerName)
Tracers may be treated as loggers for the purposes of adding filters and logging appenders.
|
Level |
getTraceLevel(ComponentID id) |
TraceLevel |
getTraceLevel(NotificationSource notificationSource,
String tracerName) |
String[] |
getTracersSet(NotificationSource notificationSource) |
String[] |
getTracersUsed(NotificationSource notificationSource) |
setTraceLevel, setTraceLevel, unsetTraceLevelLevel getTraceLevel(ComponentID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
getTraceLevel in interface TraceMBeanNullPointerExceptionUnrecognizedComponentExceptionManagementExceptionString[] getTracersUsed(NotificationSource notificationSource) throws NullPointerException, UnrecognizedNotificationSourceException, ManagementException
getTracersUsed in interface TraceMBeanNullPointerExceptionUnrecognizedNotificationSourceExceptionManagementExceptionString[] getTracersSet(NotificationSource notificationSource) throws NullPointerException, UnrecognizedNotificationSourceException, ManagementException
getTracersSet in interface TraceMBeanNullPointerExceptionUnrecognizedNotificationSourceExceptionManagementExceptionTraceLevel getTraceLevel(NotificationSource notificationSource, String tracerName) throws NullPointerException, InvalidArgumentException, UnrecognizedNotificationSourceException, ManagementException
getTraceLevel in interface TraceMBeanNullPointerExceptionInvalidArgumentExceptionUnrecognizedNotificationSourceExceptionManagementExceptionString getLogkeyForTracer(NotificationSource notificationSource, String tracerName) throws InvalidArgumentException, UnrecognizedNotificationSourceException, ManagementException
Tracers may be treated as loggers for the purposes of adding filters and logging appenders. By default Rhino abbreviates Tracer owned logkeys. Logging management operations require the full logkey to operate on. In order to support managing Tracers in this way this method returns the full logkey used by a given Tracer
notificationSource - the notification source.tracerName - the name of the tracer for which the effective trace level should be obtained.
The empty string denotes the root tracer.notificationSource and tracerNameNullPointerException - if any argument is null.UnrecognizedNotificationSourceException - if notificationSource does not identify a notification source recognizable by the SLEE.InvalidArgumentException - if tracerName is not a valid tracer name.ManagementException - if the trace logkey could not be obtained due to a system-level failure.