container/common/src/main/java/org/mobicents/slee/container/management/jmx/TraceMBeanImpl.java
public TraceLevel getTraceLevel(NotificationSource src, String tracerName) throws NullPointerException, InvalidArgumentException, UnrecognizedNotificationSourceException, ManagementException {
		if(src == null)
		{
			throw new NullPointerException("NotificationSource must not be null!");
		}
		
		if(!this.isNotificationSourceDefined(src))
		{
			throw new UnrecognizedNotificationSourceException("Notification source not recognized: "+src);
		}
		TracerImpl.checkTracerName(tracerName, src);
		
		if(!this.isTracerDefined(src,tracerName))
		{
			//FIXME: what is valid tracer name? JDOC contradicts that not existing tracer name is invalid
			this.createTracer(src,tracerName,false);
		}
		
		
		
		TracerStorage ts = this.tracerStorage.get(src);
		if (ts == null) {
			throw new ManagementException("NotificationSource has been uninstalled from SLEE. Can not create tracer.");
		}
		try {
			return ts.getTracerLevel(tracerName);
		} catch (Exception e) {
			throw new ManagementException("Failed to get trace level due to: ", e);
		}
	}
public TraceLevel getTraceLevel(NotificationSource src, String tracerName) throws NullPointerException, InvalidArgumentException, UnrecognizedNotificationSourceException, ManagementException {
		if(src == null)
		{
			throw new NullPointerException("NotificationSource must not be null!");
		}
		
		if(!this.isNotificationSourceDefined(src))
		{
			throw new UnrecognizedNotificationSourceException("Notification source not recognized: "+src);
		}
		TracerImpl.checkTracerName(tracerName, src);
		
		if(!this.isTracerDefined(src,tracerName))
		{
			//FIXME: what is valid tracer name? JDOC contradicts that not existing tracer name is invalid
			this.createTracer(src,tracerName,false);
		}
		
		
		
		TracerStorage ts = this.tracerStorage.get(src);
		if (ts == null) {
			throw new ManagementException("NotificationSource has been uninstalled from SLEE. Can not create tracer.");
		}
		try {
			return ts.getTracerLevel(tracerName);
		} catch (Exception e) {
			throw new ManagementException("Failed to get trace level due to: ", e);
		}
	}
public TraceLevel getTraceLevel ( NotificationSource src , String tracerName ) throws NullPointerException , InvalidArgumentException , UnrecognizedNotificationSourceException , ManagementException { if ( src == null ) { throw new NullPointerException ( "NotificationSource must not be null!" ) ; } if ( ! this . isNotificationSourceDefined ( src ) ) { throw new UnrecognizedNotificationSourceException ( "Notification source not recognized: " + src ) ; } TracerImpl . checkTracerName ( tracerName , src ) ; if ( ! this . isTracerDefined ( src , tracerName ) ) { //FIXME: what is valid tracer name? JDOC contradicts that not existing tracer name is invalid
 this . createTracer ( src , tracerName , false ) ; } TracerStorage ts = this . tracerStorage . get ( src ) ; if ( ts == null ) { throw new ManagementException ( "NotificationSource has been uninstalled from SLEE. Can not create tracer." ) ; } try { return ts . getTracerLevel ( tracerName ) ; } catch ( Exception e ) { throw new ManagementException ( "Failed to get trace level due to: " , e ) ; } }
/*
(non-Javadoc)
@see javax.slee.management.TraceMBean#getTraceLevel(javax.slee.management.NotificationSource, java.lang.String)
/ * ( non - Javadoc )