private synchronized void addNotificationListener(ObjectName name, int listenerId, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException { NotificationProxy proxy = new NotificationProxy(listenerId); server.getMBeanServerConnection().addNotificationListener(name, proxy, filter, handback); Association association = new Association(); association.name = name; association.listener = proxy; association.filter = filter; association.handback = handback; listeners.put(listenerId, association); }
private synchronized void addNotificationListener(ObjectName name, int listenerId, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException { NotificationProxy proxy = new NotificationProxy(listenerId); server.getMBeanServerConnection().addNotificationListener(name, proxy, filter, handback); Association association = new Association(); association.name = name; association.listener = proxy; association.filter = filter; association.handback = handback; listeners.put(listenerId, association); }
private synchronized void addNotificationListener(ObjectName name, int listenerId, NotificationFilter filter, Object handback) throws InstanceNotFoundException, IOException { NotificationProxy proxy = new NotificationProxy(listenerId); server.getMBeanServerConnection().addNotificationListener(name, proxy, filter, handback); Association association = new Association(); association.name = name; association.listener = proxy; association.filter = filter; association.handback = handback; listeners.put(listenerId, association); }