org.apache.activemq.artemis.jms.management.impl.JMSQueueControlImpl

Here are the examples of the java api class org.apache.activemq.artemis.jms.management.impl.JMSQueueControlImpl taken from open source projects.

1. JMSManagementServiceImpl#registerQueue()

View license
@Override
public synchronized void registerQueue(final ActiveMQQueue queue, final Queue serverQueue) throws Exception {
    QueueControl coreQueueControl = (QueueControl) managementService.getResource(ResourceNames.CORE_QUEUE + queue.getAddress());
    MessageCounterManager messageCounterManager = managementService.getMessageCounterManager();
    MessageCounter counter = new MessageCounter(queue.getName(), null, serverQueue, false, coreQueueControl.isDurable(), messageCounterManager.getMaxDayCount());
    messageCounterManager.registerMessageCounter(queue.getName(), counter);
    ObjectName objectName = managementService.getObjectNameBuilder().getJMSQueueObjectName(queue.getQueueName());
    JMSQueueControlImpl control = new JMSQueueControlImpl(queue, coreQueueControl, jmsServerManager, counter);
    managementService.registerInJMX(objectName, control);
    managementService.registerInRegistry(ResourceNames.JMS_QUEUE + queue.getQueueName(), control);
}