Examples of BrokerViewMBean


Examples of org.apache.activemq.broker.jmx.BrokerViewMBean

        }

        Set<ObjectName> brokers = connection.queryNames(name, null);
        Set<ObjectName> masterBrokers = new HashSet<ObjectName>();
        for (ObjectName objectName : brokers) {
            BrokerViewMBean mbean = MBeanServerInvocationHandler.newProxyInstance(connection, objectName, BrokerViewMBean.class, true);
            if (!mbean.isSlave())
                masterBrokers.add(objectName);
        }
        return masterBrokers;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.