protected void printProducers(PrintWriter writer, Map<String, String> clients, Map<String, String> queues, Map<String, String> topics) { synchronized (lock) { for (Iterator iter = producerDestinations.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); ProducerId producerId = (ProducerId)entry.getKey(); Set destinationSet = (Set)entry.getValue(); printProducers(writer, clients, queues, topics, producerId, destinationSet); } } }
@Override protected void generateFile(PrintWriter writer) throws Exception { writer.println("digraph \"ActiveMQ Connections\" {"); writer.println(); writer.println("label=\"ActiveMQ Broker: " + getBrokerView().getBrokerId() + "\"];"); writer.println(); writer.println("node [style = \"rounded,filled\", fillcolor = yellow, fontname=\"Helvetica-Oblique\"];"); writer.println(); Map<String, String> clients = new HashMap<String, String>(); Map<String, String> queues = new HashMap<String, String>(); Map<String, String> topics = new HashMap<String, String>(); printSubscribers(writer, clients, queues, "queue_", getBrokerView().getQueueSubscribers()); writer.println(); printSubscribers(writer, clients, topics, "topic_", getBrokerView().getTopicSubscribers()); writer.println(); printProducers(writer, clients, queues, topics); writer.println(); writeLabels(writer, "green", "Client: ", clients); writer.println(); writeLabels(writer, "red", "Queue: ", queues); writeLabels(writer, "blue", "Topic: ", topics); writer.println("}"); if (clearProducerCacheAfterRender) { producerDestinations.clear(); } }
protected void printProducers(PrintWriter writer, Map<String, String> clients, Map<String, String> queues, Map<String, String> topics) { synchronized (lock) { for (Iterator iter = producerDestinations.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); ProducerId producerId = (ProducerId)entry.getKey(); Set destinationSet = (Set)entry.getValue(); printProducers(writer, clients, queues, topics, producerId, destinationSet); } } }
protected void printProducers(PrintWriter writer, Map<String, String> clients, Map<String, String> queues, Map<String, String> topics) { synchronized (lock) { for (Iterator iter = producerDestinations.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); ProducerId producerId = (ProducerId)entry.getKey(); Set destinationSet = (Set)entry.getValue(); printProducers(writer, clients, queues, topics, producerId, destinationSet); } } }
protected void printProducers(PrintWriter writer, Map<String, String> clients, Map<String, String> queues, Map<String, String> topics) { synchronized (lock) { for (Iterator iter = producerDestinations.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); ProducerId producerId = (ProducerId)entry.getKey(); Set destinationSet = (Set)entry.getValue(); printProducers(writer, clients, queues, topics, producerId, destinationSet); } } }
protected void printProducers(PrintWriter writer, Map<String, String> clients, Map<String, String> queues, Map<String, String> topics) { synchronized (lock) { for (Iterator iter = producerDestinations.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry)iter.next(); ProducerId producerId = (ProducerId)entry.getKey(); Set destinationSet = (Set)entry.getValue(); printProducers(writer, clients, queues, topics, producerId, destinationSet); } } }
@Override protected void generateFile(PrintWriter writer) throws Exception { writer.println("digraph \"ActiveMQ Connections\" {"); writer.println(); writer.println("label=\"ActiveMQ Broker: " + getBrokerView().getBrokerId() + "\"];"); writer.println(); writer.println("node [style = \"rounded,filled\", fillcolor = yellow, fontname=\"Helvetica-Oblique\"];"); writer.println(); Map<String, String> clients = new HashMap<String, String>(); Map<String, String> queues = new HashMap<String, String>(); Map<String, String> topics = new HashMap<String, String>(); printSubscribers(writer, clients, queues, "queue_", getBrokerView().getQueueSubscribers()); writer.println(); printSubscribers(writer, clients, topics, "topic_", getBrokerView().getTopicSubscribers()); writer.println(); printProducers(writer, clients, queues, topics); writer.println(); writeLabels(writer, "green", "Client: ", clients); writer.println(); writeLabels(writer, "red", "Queue: ", queues); writeLabels(writer, "blue", "Topic: ", topics); writer.println("}"); if (clearProducerCacheAfterRender) { producerDestinations.clear(); } }
@Override protected void generateFile(PrintWriter writer) throws Exception { writer.println("digraph \"ActiveMQ Connections\" {"); writer.println(); writer.println("label=\"ActiveMQ Broker: " + getBrokerView().getBrokerId() + "\"];"); writer.println(); writer.println("node [style = \"rounded,filled\", fillcolor = yellow, fontname=\"Helvetica-Oblique\"];"); writer.println(); Map<String, String> clients = new HashMap<String, String>(); Map<String, String> queues = new HashMap<String, String>(); Map<String, String> topics = new HashMap<String, String>(); printSubscribers(writer, clients, queues, "queue_", getBrokerView().getQueueSubscribers()); writer.println(); printSubscribers(writer, clients, topics, "topic_", getBrokerView().getTopicSubscribers()); writer.println(); printProducers(writer, clients, queues, topics); writer.println(); writeLabels(writer, "green", "Client: ", clients); writer.println(); writeLabels(writer, "red", "Queue: ", queues); writeLabels(writer, "blue", "Topic: ", topics); writer.println("}"); if (clearProducerCacheAfterRender) { producerDestinations.clear(); } }
@Override protected void generateFile(PrintWriter writer) throws Exception { writer.println("digraph \"ActiveMQ Connections\" {"); writer.println(); writer.println("label=\"ActiveMQ Broker: " + getBrokerView().getBrokerId() + "\"];"); writer.println(); writer.println("node [style = \"rounded,filled\", fillcolor = yellow, fontname=\"Helvetica-Oblique\"];"); writer.println(); Map<String, String> clients = new HashMap<String, String>(); Map<String, String> queues = new HashMap<String, String>(); Map<String, String> topics = new HashMap<String, String>(); printSubscribers(writer, clients, queues, "queue_", getBrokerView().getQueueSubscribers()); writer.println(); printSubscribers(writer, clients, topics, "topic_", getBrokerView().getTopicSubscribers()); writer.println(); printProducers(writer, clients, queues, topics); writer.println(); writeLabels(writer, "green", "Client: ", clients); writer.println(); writeLabels(writer, "red", "Queue: ", queues); writeLabels(writer, "blue", "Topic: ", topics); writer.println("}"); if (clearProducerCacheAfterRender) { producerDestinations.clear(); } }
protected void generateFile(PrintWriter writer) throws Exception { writer.println("digraph \"ActiveMQ Connections\" {"); writer.println(); writer.println("label=\"ActiveMQ Broker: " + getBrokerView().getBrokerId() + "\"];"); writer.println(); writer.println("node [style = \"rounded,filled\", fillcolor = yellow, fontname=\"Helvetica-Oblique\"];"); writer.println(); Map<String, String> clients = new HashMap<String, String>(); Map<String, String> queues = new HashMap<String, String>(); Map<String, String> topics = new HashMap<String, String>(); printSubscribers(writer, clients, queues, "queue_", getBrokerView().getQueueSubscribers()); writer.println(); printSubscribers(writer, clients, topics, "topic_", getBrokerView().getTopicSubscribers()); writer.println(); printProducers(writer, clients, queues, topics); writer.println(); writeLabels(writer, "green", "Client: ", clients); writer.println(); writeLabels(writer, "red", "Queue: ", queues); writeLabels(writer, "blue", "Topic: ", topics); writer.println("}"); if (clearProducerCacheAfterRender) { producerDestinations.clear(); } }