Package org.apache.activemq.broker.view
Class ConnectionDotFileInterceptor
java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.broker.view.DotFileInterceptorSupport
org.apache.activemq.broker.view.ConnectionDotFileInterceptor
-
Field Summary
FieldsFields inherited from class org.apache.activemq.broker.BrokerFilter
next -
Constructor Summary
ConstructorsConstructorDescriptionConnectionDotFileInterceptor(Broker next, String file, boolean redrawOnRemove) -
Method Summary
Modifier and TypeMethodDescriptionaddConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) Adds a consumer.voidaddProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) Adds a producer.protected StringLet's strip out any non-supported charactersprotected voidgenerateFile(PrintWriter writer) protected StringgetPath(org.apache.activemq.filter.DestinationMapNode node) protected voidprintNodeLinks(PrintWriter writer, org.apache.activemq.filter.DestinationMapNode node, String prefix) protected voidprintNodes(PrintWriter writer, org.apache.activemq.filter.DestinationMapNode node, String prefix) protected voidprintProducers(PrintWriter writer, Map<String, String> clients, Map<String, String> queues, Map<String, String> topics) protected voidprintProducers(PrintWriter writer, Map<String, String> clients, Map<String, String> queues, Map<String, String> topics, org.apache.activemq.command.ProducerId producerId, Set destinationSet) protected voidprintSubscribers(PrintWriter writer, Map<String, String> clients, Map<String, String> destinations, String type, ObjectName[] subscribers) voidremoveConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) Removes a consumer.voidremoveProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) Removes a producer.voidsend(ProducerBrokerExchange producerExchange, org.apache.activemq.command.Message messageSend) Send a message to the broker to using the specified destination.protected voidwriteLabels(PrintWriter writer, String color, String prefix, Map<String, String> map) Methods inherited from class org.apache.activemq.broker.view.DotFileInterceptorSupport
generateFileMethods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConnection, addDestination, addDestinationInfo, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeDestination, removeDestinationInfo, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemoved
-
Field Details
-
ID_SEPARATOR
- See Also:
-
-
Constructor Details
-
ConnectionDotFileInterceptor
public ConnectionDotFileInterceptor(Broker next, String file, boolean redrawOnRemove) throws IOException - Throws:
IOException
-
-
Method Details
-
addConsumer
public Subscription addConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) throws Exception Description copied from interface:RegionAdds a consumer.- Specified by:
addConsumerin interfaceRegion- Overrides:
addConsumerin classBrokerFilter- Parameters:
context- the environment the operation is being executed under.- Returns:
- TODO
- Throws:
Exception- TODO
-
addProducer
public void addProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) throws Exception Description copied from interface:BrokerAdds a producer.- Specified by:
addProducerin interfaceBroker- Specified by:
addProducerin interfaceRegion- Overrides:
addProducerin classBrokerFilter- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
removeConsumer
public void removeConsumer(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) throws Exception Description copied from interface:RegionRemoves a consumer.- Specified by:
removeConsumerin interfaceRegion- Overrides:
removeConsumerin classBrokerFilter- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
removeProducer
public void removeProducer(ConnectionContext context, org.apache.activemq.command.ProducerInfo info) throws Exception Description copied from interface:BrokerRemoves a producer.- Specified by:
removeProducerin interfaceBroker- Specified by:
removeProducerin interfaceRegion- Overrides:
removeProducerin classBrokerFilter- Parameters:
context- the environment the operation is being executed under.- Throws:
Exception- TODO
-
send
public void send(ProducerBrokerExchange producerExchange, org.apache.activemq.command.Message messageSend) throws Exception Description copied from interface:RegionSend a message to the broker to using the specified destination. The destination specified in the message does not need to match the destination the message is sent to. This is handy in case the message is being sent to a dead letter destination.- Specified by:
sendin interfaceRegion- Overrides:
sendin classBrokerFilter- Parameters:
producerExchange- the environment the operation is being executed under.- Throws:
Exception- TODO
-
generateFile
- Specified by:
generateFilein classDotFileInterceptorSupport- Throws:
Exception
-
printProducers
-
printProducers
-
printSubscribers
protected void printSubscribers(PrintWriter writer, Map<String, String> clients, Map<String, String> destinations, String type, ObjectName[] subscribers) -
writeLabels
-
asID
Let's strip out any non-supported characters -
printNodes
protected void printNodes(PrintWriter writer, org.apache.activemq.filter.DestinationMapNode node, String prefix) -
printNodeLinks
protected void printNodeLinks(PrintWriter writer, org.apache.activemq.filter.DestinationMapNode node, String prefix) -
getPath
-