public void register(ActiveMQDestination destName, Destination destination) { // TODO refactor to allow views for custom destinations try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); DestinationView view; if (destination instanceof Queue) { view = new QueueView(this, (Queue)destination); } else if (destination instanceof Topic) { view = new TopicView(this, (Topic)destination); } else { view = null; LOG.warn("JMX View is not supported for custom destination {}", destination); } if (view != null) { registerDestination(objectName, destName, view); } } catch (Exception e) { LOG.error("Failed to register destination {}", destName, e); } }
public void register(ActiveMQDestination destName, Destination destination) { // TODO refactor to allow views for custom destinations try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); DestinationView view; if (destination instanceof Queue) { view = new QueueView(this, (Queue)destination); } else if (destination instanceof Topic) { view = new TopicView(this, (Topic)destination); } else { view = null; LOG.warn("JMX View is not supported for custom destination {}", destination); } if (view != null) { registerDestination(objectName, destName, view); } } catch (Exception e) { LOG.error("Failed to register destination {}", destName, e); } }
public void register(ActiveMQDestination destName, Destination destination) { // TODO refactor to allow views for custom destinations try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); DestinationView view; if (destination instanceof Queue) { view = new QueueView(this, (Queue)destination); } else if (destination instanceof Topic) { view = new TopicView(this, (Topic)destination); } else { view = null; LOG.warn("JMX View is not supported for custom destination {}", destination); } if (view != null) { registerDestination(objectName, destName, view); } } catch (Exception e) { LOG.error("Failed to register destination {}", destName, e); } }
public void register(ActiveMQDestination destName, Destination destination) { // TODO refactor to allow views for custom destinations try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); DestinationView view; if (destination instanceof Queue) { view = new QueueView(this, (Queue)destination); } else if (destination instanceof Topic) { view = new TopicView(this, (Topic)destination); } else { view = null; LOG.warn("JMX View is not supported for custom destination {}", destination); } if (view != null) { registerDestination(objectName, destName, view); } } catch (Exception e) { LOG.error("Failed to register destination {}", destName, e); } }
public void register(ActiveMQDestination destName, Destination destination) { // TODO refactor to allow views for custom destinations try { ObjectName objectName = createObjectName(destName); DestinationView view; if (destination instanceof Queue) { view = new QueueView(this, (Queue)destination); } else if (destination instanceof Topic) { view = new TopicView(this, (Topic)destination); } else { view = null; LOG.warn("JMX View is not supported for custom destination: " + destination); } if (view != null) { registerDestination(objectName, destName, view); } } catch (Exception e) { LOG.error("Failed to register destination " + destName, e); } }