public Tracer getTracer(String tracerName) throws NullPointerException, IllegalArgumentException, SLEEException { try { return sleeContainer.getTraceManagement().createTracer( this.notificationSource, tracerName, true); } catch (InvalidArgumentException e) { throw new IllegalArgumentException(e); } }
public void execute() { // remove notification sources for profile table traceMBeanImpl.deregisterNotificationSource(new ProfileTableNotification(profileTableName)); } };
public void execute() { // remove notification sources for all sbbs traceMBeanImpl .registerNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID)); }
traceMBeanImpl.registerNotificationSource(notificationSource); traceMBeanImpl.deregisterNotificationSource(notificationSource); throw e; traceMBeanImpl.deregisterNotificationSource(notificationSource); throw e; traceMBeanImpl.deregisterNotificationSource(notificationSource); throw e; traceMBeanImpl.deregisterNotificationSource(notificationSource); throw new SLEEException(e.getMessage(),e);
sleeContainer.getTraceManagement().getTraceFacility().unSetTraceLevel( sbbComponent.getSbbID()); sleeContainer.getAlarmManagement().unRegisterComponent(
public ObjectName getTraceMBean() { return sleeContainer.getTraceManagement().getTraceMBeanObjectName(); }
sleeContainer.getTraceManagement().getTraceFacility().setTraceLevelOnTransaction( sbbComponent.getSbbID(), Level.OFF); sleeContainer.getAlarmManagement().registerComponent(
public void execute() { // remove notification sources for all sbbs traceMBeanImpl .deregisterNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID)); } };
public Tracer getTracer(String tracerName) throws NullPointerException, IllegalArgumentException, SLEEException { try { return this.sleeContainer.getTraceManagement().createTracer(raEntity.getNotificationSource(), tracerName, true); } catch (InvalidArgumentException e) { throw new IllegalArgumentException(e); } }
public void registerTracer() { if (!traceRegistred) { // register tracer final TraceManagement traceMBeanImpl = sleeContainer.getTraceManagement(); traceMBeanImpl.registerNotificationSource(new ProfileTableNotification(profileTableName)); TransactionalAction action2 = new TransactionalAction() { public void execute() { // remove notification sources for profile table traceMBeanImpl.deregisterNotificationSource(new ProfileTableNotification(profileTableName)); } }; sleeContainer.getTransactionManager().getTransactionContext().getAfterRollbackActions().add(action2); traceRegistred = true; } }
sleeContainer.getTraceManagement().getTraceFacility()); } catch (NameAlreadyBoundException ex) {
public void execute() { // remove notification sources for profile table final TraceManagement traceMBeanImpl = sleeContainer.getTraceManagement(); traceMBeanImpl.deregisterNotificationSource(new ProfileTableNotification(profileTableName)); // close uncommitted mbeans closeUncommittedProfileMBeans(); } };
public Tracer getTracer(String tracerName) throws NullPointerException, IllegalArgumentException, SLEEException { doGeneralChecks(); try { TracerImpl.checkTracerName(tracerName, this.profileTable .getProfileTableNotification().getNotificationSource()); } catch (InvalidArgumentException e1) { throw new IllegalArgumentException(e1); } try { return profileTable.getSleeContainer().getTraceManagement() .createTracer( this.profileTable.getProfileTableNotification() .getNotificationSource(), tracerName, true); } catch (Exception e) { throw new SLEEException("Failed to obtain tracer", e); } }
traceMBeanImpl.registerNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID));
.deregisterNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID));
/** * Removes the entity, it will unconfigure and unset the ra context, the * entity object can not be reused * * @throws InvalidStateException */ public void remove() throws InvalidStateException { if (!this.state.isInactive()) { throw new InvalidStateException("entity " + name + " is in state: " + this.state); } object.raUnconfigure(); if (object.isFaultTolerant()) { object.unsetFaultTolerantResourceAdaptorContext(); ftResourceAdaptorContext.shutdown(); } object.unsetResourceAdaptorContext(); this.sleeContainer.getTraceManagement() .deregisterNotificationSource(this.getNotificationSource()); state = null; }