Package org.apache.qpid.server.model

Examples of org.apache.qpid.server.model.ExclusivityPolicy


        _qName = queue.getName();

        // In the Java Broker exclusivity may be NONE, SESSION, CONNECTION, CONTAINER, PRINCIPAL, LINK
        // We map these to a boolean value to be consistent with the C++ Broker QMF values.
        // TODO The C++ and Java Brokers should really return consistent information.
        ExclusivityPolicy exclusivityPolicy = queue.getExclusive();
        _exclusive = (exclusivityPolicy != ExclusivityPolicy.NONE) ? true : false;
    }
View Full Code Here


        boolean autoDelete = (lifetimePolicy != LifetimePolicy.PERMANENT) ? true : false;

        // In the Java Broker exclusivity may be NONE, SESSION, CONNECTION, CONTAINER, PRINCIPAL, LINK
        // We map these to a boolean value to be consistent with the C++ Broker QMF value.
        // TODO The C++ and Java Brokers should really return consistent information.
        ExclusivityPolicy exclusivityPolicy = _queue.getExclusive();
        boolean exclusive = (exclusivityPolicy != ExclusivityPolicy.NONE) ? true : false;

        // TODO vhostRef - currently just use its name to try and get things working with standard command line tools.

        setValue("name", name);
View Full Code Here

        _qName = queue.getName();

        // In the Java Broker exclusivity may be NONE, SESSION, CONNECTION, CONTAINER, PRINCIPAL, LINK
        // We map these to a boolean value to be consistent with the C++ Broker QMF values.
        // TODO The C++ and Java Brokers should really return consistent information.
        ExclusivityPolicy exclusivityPolicy = (ExclusivityPolicy)queue.getAttribute("exclusive");
        _exclusive = (exclusivityPolicy != ExclusivityPolicy.NONE) ? true : false;
    }
View Full Code Here

        boolean autoDelete = (lifetimePolicy != LifetimePolicy.PERMANENT) ? true : false;

        // In the Java Broker exclusivity may be NONE, SESSION, CONNECTION, CONTAINER, PRINCIPAL, LINK
        // We map these to a boolean value to be consistent with the C++ Broker QMF value.
        // TODO The C++ and Java Brokers should really return consistent information.
        ExclusivityPolicy exclusivityPolicy = (ExclusivityPolicy)_queue.getAttribute("exclusive");
        boolean exclusive = (exclusivityPolicy != ExclusivityPolicy.NONE) ? true : false;

        // TODO vhostRef - currently just use its name to try and get things working with standard command line tools.

        setValue("name", name);
View Full Code Here

                    lifetime = LifetimePolicy.PERMANENT;
                }

                arguments.put(Queue.LIFETIME_POLICY, lifetime);

                ExclusivityPolicy exclusivityPolicy = exclusive ? ExclusivityPolicy.SESSION : ExclusivityPolicy.NONE;


                arguments.put(Queue.DURABLE, method.getDurable());

                arguments.put(Queue.EXCLUSIVE, exclusivityPolicy);
View Full Code Here

                    lifetime = LifetimePolicy.PERMANENT;
                }

                arguments.put(Queue.LIFETIME_POLICY, lifetime);

                ExclusivityPolicy exclusivityPolicy = exclusive ? ExclusivityPolicy.SESSION : ExclusivityPolicy.NONE;


                arguments.put(Queue.DURABLE, method.getDurable());

                arguments.put(Queue.EXCLUSIVE, exclusivityPolicy);
View Full Code Here

        attributes.put(Queue.NAME, queueNameString);
        attributes.put(Queue.ID, UUIDGenerator.generateQueueUUID(queueNameString, virtualHost.getName()));
        attributes.put(Queue.DURABLE, durable);

        LifetimePolicy lifetimePolicy;
        ExclusivityPolicy exclusivityPolicy;

        if(exclusive)
        {
            lifetimePolicy = autoDelete
                    ? LifetimePolicy.DELETE_ON_NO_OUTBOUND_LINKS
View Full Code Here

    {
        try
        {
            if(EXCLUSIVE.equals(name))
            {
                ExclusivityPolicy existingPolicy = getExclusive();
                if(super.changeAttribute(name, expected, desired))
                {
                    try
                    {
                        if(existingPolicy != _exclusive)
                        {
                            ExclusivityPolicy newPolicy = _exclusive;
                            _exclusive = existingPolicy;
                            updateExclusivityPolicy(newPolicy);
                        }
                        return true;
                    }
View Full Code Here

        attributes.put(Queue.NAME, queueNameString);
        attributes.put(Queue.ID, UUID.randomUUID());
        attributes.put(Queue.DURABLE, durable);

        LifetimePolicy lifetimePolicy;
        ExclusivityPolicy exclusivityPolicy;

        if(exclusive)
        {
            lifetimePolicy = autoDelete
                    ? LifetimePolicy.DELETE_ON_NO_OUTBOUND_LINKS
View Full Code Here

        return _queue.isQueueFlowStopped();
    }

    public boolean isExclusive()
    {
        final ExclusivityPolicy attribute = _queue.getExclusive();
        return attribute != null && attribute != ExclusivityPolicy.NONE;
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.model.ExclusivityPolicy

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.