Package org.jboss.mx.remote.event

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


            // 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

                public void handleNotification(Notification n, Object handback)
                {
                    System.out.println("event --> " + n + ", handback: " + handback);
                }
            };
            NotificationFilter filter = new ClassEventFilter(Notification.class);
            remote.addNotificationListener(new ObjectName("JMImplementation:type=MBeanServerDelegate"), listener, filter, "Hello,World");

            Set beans = remote.queryMBeans(new ObjectName("*:*"), null);
            Iterator iter = beans.iterator();
            while (iter.hasNext())
View Full Code Here

TOP

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

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.