Package org.jboss.mx.remote.event

Examples of org.jboss.mx.remote.event.LocalMBeanEventFilter


            ObjectInstance instance = (ObjectInstance) iter.next();
            if (log.isDebugEnabled())
            {
                log.debug("registering Detector: " + instance.getObjectName());
            }
            getServer().addNotificationListener(instance.getObjectName(), this, new LocalMBeanEventFilter(), null);
        }
    }
View Full Code Here


                Object obj = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[]{ProxyContext.class, DynamicMBean.class}, nh);
                getServer().registerMBean(obj, rmbs);
            }

            // add a remote notification listener for the remote mbean server
            con.server.addNotificationListener(JMXUtil.getMBeanServerObjectName(), this, new LocalMBeanEventFilter(), k);

            // add a remote notification listener for the remote connector mbean
            CompositeEventFilter filter = new CompositeEventFilter(new NotificationFilter[]{new ClassEventFilter(AttributeChangeNotification.class), new LocalMBeanEventFilter()});
            con.server.addNotificationListener(con.localName, this, filter, null);

            // query all beans on the remote MBeanServer, excluding any mbeans under the JMImplementation domain (the MBeanServerDelegate)
            // and that aren't private
            Set beans = JMXUtil.queryLocalMBeans(con.server, new ObjectName("*:*"), query);
View Full Code Here

            String t = mbean.localName.getKeyProperty("type");
            if (t != null && t.equals("Detector"))
            {
                // add a special filter/listener for receiving attribute changes on detectors
                CompositeEventFilter filter = new CompositeEventFilter(new NotificationFilter[]{new ClassEventFilter(AttributeChangeNotification.class), new LocalMBeanEventFilter()});
                con.server.addNotificationListener(ro, this, filter, null);
            }
        }
    }
View Full Code Here

                    {
                        // a connector is added, removed
                        if (type.equals("JMX.mbean.registered"))
                        {
                            // new connector -- add notification listener
                            getServer().addNotificationListener(source, this, new LocalMBeanEventFilter(), null);
                            return;
                        }
                        else if (type.equals("JMX.mbean.unregistered"))
                        {
                            // removed connector  -- remove listener
View Full Code Here

TOP

Related Classes of org.jboss.mx.remote.event.LocalMBeanEventFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.