mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.0@414596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e437092be2
commit
784d69ff80
|
@ -15,10 +15,21 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.activemq.broker.view;
|
package org.apache.activemq.broker.view;
|
||||||
|
|
||||||
|
import java.io.PrintWriter;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import javax.management.MBeanServer;
|
||||||
|
import javax.management.MBeanServerInvocationHandler;
|
||||||
|
import javax.management.MalformedObjectNameException;
|
||||||
|
import javax.management.ObjectName;
|
||||||
|
|
||||||
import org.apache.activemq.broker.Broker;
|
import org.apache.activemq.broker.Broker;
|
||||||
import org.apache.activemq.broker.Connection;
|
|
||||||
import org.apache.activemq.broker.ConnectionContext;
|
import org.apache.activemq.broker.ConnectionContext;
|
||||||
import org.apache.activemq.broker.Connector;
|
|
||||||
import org.apache.activemq.broker.jmx.BrokerViewMBean;
|
import org.apache.activemq.broker.jmx.BrokerViewMBean;
|
||||||
import org.apache.activemq.broker.jmx.ManagementContext;
|
import org.apache.activemq.broker.jmx.ManagementContext;
|
||||||
import org.apache.activemq.broker.jmx.SubscriptionViewMBean;
|
import org.apache.activemq.broker.jmx.SubscriptionViewMBean;
|
||||||
|
@ -28,18 +39,8 @@ import org.apache.activemq.command.ConsumerInfo;
|
||||||
import org.apache.activemq.command.Message;
|
import org.apache.activemq.command.Message;
|
||||||
import org.apache.activemq.command.ProducerId;
|
import org.apache.activemq.command.ProducerId;
|
||||||
import org.apache.activemq.command.ProducerInfo;
|
import org.apache.activemq.command.ProducerInfo;
|
||||||
import org.apache.activemq.filter.DestinationMap;
|
|
||||||
import org.apache.activemq.filter.DestinationMapNode;
|
import org.apache.activemq.filter.DestinationMapNode;
|
||||||
|
|
||||||
import javax.management.MBeanServer;
|
|
||||||
import javax.management.MBeanServerFactory;
|
|
||||||
import javax.management.MBeanServerInvocationHandler;
|
|
||||||
import javax.management.MalformedObjectNameException;
|
|
||||||
import javax.management.ObjectName;
|
|
||||||
|
|
||||||
import java.io.PrintWriter;
|
|
||||||
import java.util.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @version $Revision: $
|
* @version $Revision: $
|
||||||
|
@ -153,11 +154,13 @@ public class ConnectionDotFileInterceptor extends DotFileInterceptorSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void printProducers(PrintWriter writer, Map clients, Map queues, Map topics) {
|
protected void printProducers(PrintWriter writer, Map clients, Map queues, Map topics) {
|
||||||
for (Iterator iter = producerDestinations.entrySet().iterator(); iter.hasNext();) {
|
synchronized(lock) {
|
||||||
Map.Entry entry = (Map.Entry) iter.next();
|
for (Iterator iter = producerDestinations.entrySet().iterator(); iter.hasNext();) {
|
||||||
ProducerId producerId = (ProducerId) entry.getKey();
|
Map.Entry entry = (Map.Entry) iter.next();
|
||||||
Set destinationSet = (Set) entry.getValue();
|
ProducerId producerId = (ProducerId) entry.getKey();
|
||||||
printProducers(writer, clients, queues, topics, producerId, destinationSet);
|
Set destinationSet = (Set) entry.getValue();
|
||||||
|
printProducers(writer, clients, queues, topics, producerId, destinationSet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue