public void execute() { // remove notification sources for all sbbs traceMBeanImpl .registerNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID)); }
/** * Creates a new instance of SbbContextImpl * * @param notificationSource */ public SbbContextImpl(SbbObject sbbObject) { this.sbbObject = sbbObject; this.notificationSource = new SbbNotification(getService(), getSbb()); }
public void execute() { // remove notification sources for all sbbs traceMBeanImpl .deregisterNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID)); } };
private SbbNotification parseSbbNotification(String text) { int separator = text.indexOf("sbb=SbbID["); String serviceID = text.substring(0, separator-1); serviceID = serviceID.substring("service=".length()); ComponentIDPropertyEditor cidPropertyEditor = new ComponentIDPropertyEditor(); cidPropertyEditor.setAsText(serviceID); ServiceID service = (ServiceID) cidPropertyEditor.getValue(); String sbbID = text.substring(separator); sbbID = sbbID.substring("sbb=".length()); cidPropertyEditor.setAsText(sbbID); SbbID sbb = (SbbID) cidPropertyEditor.getValue(); return new SbbNotification(service,sbb); }
traceMBeanImpl.registerNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID)); .deregisterNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID)); new SbbNotification(serviceComponent.getServiceID(), sbbID)); serviceComponent.getAlarmNotificationSources().putIfAbsent(sbbID, sbbMNotificationSource);
.deregisterNotificationSource(new SbbNotification( serviceComponent.getServiceID(), sbbID));
SbbNotification sbbNotification = new SbbNotification(serviceID, sbbId); AbstractUsageParameterSet installedUsageParameterSet = (AbstractUsageParameterSet) AbstractUsageParameterSet.newInstance(usageParameterClass, sbbNotification, name, sleeContainer);