Interface TraceMBean
-
- All Superinterfaces:
TraceMBean
public interface TraceMBean extends TraceMBean
-
-
Field Summary
-
Fields inherited from interface javax.slee.management.TraceMBean
OBJECT_NAME, TRACE_NOTIFICATION_TYPE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLogkeyForTracer(NotificationSource notificationSource, String tracerName)Tracers may be treated as loggers for the purposes of adding filters and logging appenders.LevelgetTraceLevel(ComponentID id)TraceLevelgetTraceLevel(NotificationSource notificationSource, String tracerName)String[]getTracersSet(NotificationSource notificationSource)String[]getTracersUsed(NotificationSource notificationSource)-
Methods inherited from interface javax.slee.management.TraceMBean
setTraceLevel, setTraceLevel, unsetTraceLevel
-
-
-
-
Method Detail
-
getTraceLevel
Level getTraceLevel(ComponentID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
- Specified by:
getTraceLevelin interfaceTraceMBean- Throws:
NullPointerExceptionUnrecognizedComponentExceptionManagementException
-
getTracersUsed
String[] getTracersUsed(NotificationSource notificationSource) throws NullPointerException, UnrecognizedNotificationSourceException, ManagementException
- Specified by:
getTracersUsedin interfaceTraceMBean- Throws:
NullPointerExceptionUnrecognizedNotificationSourceExceptionManagementException
-
getTracersSet
String[] getTracersSet(NotificationSource notificationSource) throws NullPointerException, UnrecognizedNotificationSourceException, ManagementException
- Specified by:
getTracersSetin interfaceTraceMBean- Throws:
NullPointerExceptionUnrecognizedNotificationSourceExceptionManagementException
-
getTraceLevel
TraceLevel getTraceLevel(NotificationSource notificationSource, String tracerName) throws NullPointerException, InvalidArgumentException, UnrecognizedNotificationSourceException, ManagementException
- Specified by:
getTraceLevelin interfaceTraceMBean- Throws:
NullPointerExceptionInvalidArgumentExceptionUnrecognizedNotificationSourceExceptionManagementException
-
getLogkeyForTracer
String 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
- Parameters:
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.- Returns:
- The full logkey matching the Tracer uniquely identified by
notificationSourceandtracerName - Throws:
NullPointerException- if any argument isnull.UnrecognizedNotificationSourceException- ifnotificationSourcedoes not identify a notification source recognizable by the SLEE.InvalidArgumentException- iftracerNameis not a valid tracer name.ManagementException- if the trace logkey could not be obtained due to a system-level failure.- Since:
- Rhino 2.6
-
-