public static ObjectName createDestinationName(ObjectName brokerObjectName, ActiveMQDestination destination) throws MalformedObjectNameException { return createDestinationName(brokerObjectName.toString(), destination); }
public DestinationView getQueueView(String queueName) throws MalformedObjectNameException { ObjectName objName = BrokerMBeanSupport.createDestinationName(brokerObjectName.toString(), "Queue", queueName); return queues.get(objName); }
public void unregister(ActiveMQDestination destName) { try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); unregisterDestination(objectName); } catch (Exception e) { LOG.error("Failed to unregister {}", 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 static ObjectName createDestinationName(ObjectName brokerObjectName, ActiveMQDestination destination) throws MalformedObjectNameException { return createDestinationName(brokerObjectName.toString(), destination); }
public DestinationView getQueueView(String queueName) throws MalformedObjectNameException { ObjectName objName = BrokerMBeanSupport.createDestinationName(brokerObjectName.toString(), "Queue", queueName); return queues.get(objName); } }
public DestinationView getQueueView(String queueName) throws MalformedObjectNameException { ObjectName objName = BrokerMBeanSupport.createDestinationName(brokerObjectName.toString(), "Queue", queueName); return queues.get(objName); } }
public static ObjectName createDestinationName(ObjectName brokerObjectName, ActiveMQDestination destination) throws MalformedObjectNameException { return createDestinationName(brokerObjectName.toString(), destination); }
public DestinationView getQueueView(String queueName) throws MalformedObjectNameException { ObjectName objName = BrokerMBeanSupport.createDestinationName(brokerObjectName.toString(), "Queue", queueName); return queues.get(objName); } }
public static ObjectName createDestinationName(ObjectName brokerObjectName, ActiveMQDestination destination) throws MalformedObjectNameException { return createDestinationName(brokerObjectName.toString(), destination); }
public void unregister(ActiveMQDestination destName) { try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); unregisterDestination(objectName); } catch (Exception e) { LOG.error("Failed to unregister {}", destName, e); } }
public void unregister(ActiveMQDestination destName) { try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); unregisterDestination(objectName); } catch (Exception e) { LOG.error("Failed to unregister {}", destName, e); } }
public void unregister(ActiveMQDestination destName) { try { ObjectName objectName = BrokerMBeanSupport.createDestinationName(brokerObjectName, destName); unregisterDestination(objectName); } catch (Exception e) { LOG.error("Failed to unregister {}", 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); } }