Package org.apache.qpid.server.logging.actors

Examples of org.apache.qpid.server.logging.actors.ManagementActor


        if (queue == null)
        {
            throw new JMException("Queue \"" + queueName + "\" is not registered with the virtualhost.");
        }

        CurrentActor.set(new ManagementActor(getLogActor().getRootMessageLogger()));

        final Map<String,Object> arguments = new HashMap<String, Object>();
        final String[] bindings = binding.split(",");
        for (int i = 0; i < bindings.length; i++)
        {
View Full Code Here


     * @throws JMException
     * @throws MBeanException
     */
    public void createNewExchange(String exchangeName, String type, boolean durable) throws JMException, MBeanException
    {
        CurrentActor.set(new ManagementActor(getLogActor().getRootMessageLogger()));
        try
        {
            synchronized (_exchangeRegistry)
            {
                Exchange exchange = _exchangeRegistry.getExchange(new AMQShortString(exchangeName));
View Full Code Here

        // TODO
        // Check if the exchange is in use.

        // Check if there are queue-bindings with the exchange and unregister
        // when there are no bindings.
        CurrentActor.set(new ManagementActor(getLogActor().getRootMessageLogger()));
        try
        {
            _exchangeRegistry.unregisterExchange(new AMQShortString(exchangeName), false);
        }
        catch (AMQException ex)
View Full Code Here

        if (queue != null)
        {
            throw new JMException("The queue \"" + queueName + "\" already exists.");
        }

        CurrentActor.set(new ManagementActor(getLogActor().getRootMessageLogger()));
        try
        {
            AMQShortString ownerShortString = null;
            if (owner != null)
            {
View Full Code Here

        if (queue == null)
        {
            throw new JMException("The Queue " + queueName + " is not a registered queue.");
        }

        CurrentActor.set(new ManagementActor(getLogActor().getRootMessageLogger()));
        try
        {
            queue.delete();
            if (queue.isDurable())
            {
View Full Code Here

        {
            throw new JMException("The channel (channel Id = " + channelId + ") does not exist");
        }
        else if (session.isTransactional())
        {
            CurrentActor.set(new ManagementActor(getLogActor().getRootMessageLogger()));
            try
            {
                session.commit();
            }
            finally
View Full Code Here

        {
            throw new JMException("The channel (channel Id = " + channelId + ") does not exist");
        }
        else if (session.isTransactional())
        {
            CurrentActor.set(new ManagementActor(getLogActor().getRootMessageLogger()));
            try
            {
                session.rollback();
            }
            finally
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.logging.actors.ManagementActor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.