/** * This method is requried - in case component is removed on call to method with its noti source we must throw unknown notification source exception - even thought alarms MAY be present? * @throws UnrecognizedNotificationSourceException */ private void mandateSource(NotificationSource src) throws UnrecognizedNotificationSourceException { if(!traceMBean.isNotificationSourceDefined(src)) { throw new UnrecognizedNotificationSourceException("Notification source is not present: "+src); } }
public String[] getTracersUsed(NotificationSource src) throws NullPointerException, UnrecognizedNotificationSourceException, ManagementException { if(src == null) { throw new NullPointerException("NotificationSource must nto be null!"); } if(!this.isNotificationSourceDefined(src)) { throw new UnrecognizedNotificationSourceException("Notification source not recognized: "+src); } TracerStorage ts = this.tracerStorage.get(src); if (ts == null) { throw new ManagementException("NotificationSource has been uninstalled from SLEE. Can not create tracer."); } return ts.getRequestedTracerNames(); }
public String[] getTracersSet(NotificationSource src) throws NullPointerException, UnrecognizedNotificationSourceException, ManagementException { if(src == null) { throw new NullPointerException("NotificationSource must nto be null!"); } if(!this.isNotificationSourceDefined(src)) { throw new UnrecognizedNotificationSourceException("Notification source not recognized: "+src); } TracerStorage ts = this.tracerStorage.get(src); if (ts == null) { throw new ManagementException("NotificationSource has been uninstalled from SLEE. Can not create tracer."); } return ts.getDefinedTracerNames(); }
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); } }
(!this.isNotificationSourceDefined(src)) throw new UnrecognizedNotificationSourceException("Notification source not recognized: "+src);
throw new UnrecognizedNotificationSourceException("Notification source not recognized: "+src);