Package org.apache.qpid.server.configuration

Examples of org.apache.qpid.server.configuration.VirtualHostConfiguration


        _queues = new ArrayList<AMQQueue>();

        _virtualHost = mock(VirtualHost.class);
        when(_virtualHost.getSecurityManager()).thenReturn(mock(SecurityManager.class));

        VirtualHostConfiguration vhostConfig = mock(VirtualHostConfiguration.class);
        when(_virtualHost.getConfiguration()).thenReturn(vhostConfig);
        when(_virtualHost.getEventLogger()).thenReturn(new EventLogger());
        _queueConfiguration = mock(QueueConfiguration.class);
        when(vhostConfig.getQueueConfiguration(anyString())).thenReturn(_queueConfiguration);
        DurableConfigurationStore store = mock(DurableConfigurationStore.class);
        when(_virtualHost.getDurableConfigurationStore()).thenReturn(store);

        mockExchangeCreation();
        mockQueueRegistry();
View Full Code Here


    {
        _perms = new PrincipalPermissions(_user);
        try
        {
            PropertiesConfiguration env = new PropertiesConfiguration();
            _virtualHost = new VirtualHost(new VirtualHostConfiguration("test", env));
            _exchange = DirectExchange.TYPE.newInstance(_virtualHost, _exchangeName, _durable, _ticket, _autoDelete);
            _queue = AMQQueueFactory.createAMQQueueImpl(_queueName, false, _owner , false, _virtualHost, _arguments);
        }
        catch (Exception e)
        {
View Full Code Here

    @Override
    public void setUp() throws Exception
    {
        _store = new TestableMemoryMessageStore();
        PropertiesConfiguration env = new PropertiesConfiguration();
        _virtualHost = new VirtualHost(new VirtualHostConfiguration("test", env));
        TestIoSession iosession = new TestIoSession();
        iosession.setAddress("127.0.0.1");
        VirtualHostRegistry virtualHostRegistry = null;
        AMQCodecFactory codecFactory = new AMQCodecFactory(true);
        _session = new AMQMinaProtocolSession(iosession, virtualHostRegistry, codecFactory);       
View Full Code Here

        super.setUp();
        //Create Application Registry for test
        ApplicationRegistry applicationRegistry = (ApplicationRegistry)ApplicationRegistry.getInstance(1);

        PropertiesConfiguration env = new PropertiesConfiguration();
        _virtualHost = new VirtualHost(new VirtualHostConfiguration(getClass().getName(), env), _store);
        applicationRegistry.getVirtualHostRegistry().registerVirtualHost(_virtualHost);

        _queue = (SimpleAMQQueue) AMQQueueFactory.createAMQQueueImpl(_qname, false, _owner, false, _virtualHost, _arguments);
    }
View Full Code Here

                                                                          new LinkedList<RequiredDeliveryException>()
            );

            PropertiesConfiguration env = new PropertiesConfiguration();
            env.setProperty("name", "test");
            VirtualHost virtualHost = new VirtualHost(new VirtualHostConfiguration("test", env), null);
           
            _queue = AMQQueueFactory.createAMQQueueImpl(new AMQShortString("test"), false, null, false,
                    virtualHost, null);

            for (int i = 0; i < messageCount; i++)
View Full Code Here

            }
        }

        try
        {
            _virtualHost = new VirtualHost(new VirtualHostConfiguration(getClass().getName(), configuration));
            ApplicationRegistry.getInstance().getVirtualHostRegistry().registerVirtualHost(_virtualHost);
        }
        catch (Exception e)
        {
            e.printStackTrace();
View Full Code Here

        _messageStore = new TestableMemoryMessageStore();

        _virtualHostRegistry = new VirtualHostRegistry();
       
        PropertiesConfiguration vhostProps = new PropertiesConfiguration();
        VirtualHostConfiguration hostConfig = new VirtualHostConfiguration("test", vhostProps);
        _vHost = new VirtualHost(hostConfig, _messageStore);

        _virtualHostRegistry.registerVirtualHost(_vHost);

        _queueRegistry = _vHost.getQueueRegistry();
View Full Code Here

        _authenticationManager = new PrincipalDatabaseAuthenticationManager(null, null);

        _managedObjectRegistry = new NoopManagedObjectRegistry();
        _virtualHostRegistry = new VirtualHostRegistry();
        PropertiesConfiguration vhostProps = new PropertiesConfiguration();
        VirtualHostConfiguration hostConfig = new VirtualHostConfiguration("test", vhostProps);
        VirtualHost dummyHost = new VirtualHost(hostConfig);
        _virtualHostRegistry.registerVirtualHost(dummyHost);
        _virtualHostRegistry.setDefaultVirtualHostName("test");
        _pluginManager = new PluginManager("");
View Full Code Here

        super.setUp();
        //Create Application Registry for test
        ApplicationRegistry applicationRegistry = (ApplicationRegistry)ApplicationRegistry.getInstance();

        PropertiesConfiguration env = new PropertiesConfiguration();
        _virtualHost = new VirtualHostImpl(ApplicationRegistry.getInstance(), new VirtualHostConfiguration(getClass().getName(), env), _store);
        applicationRegistry.getVirtualHostRegistry().registerVirtualHost(_virtualHost);

        _queue = (SimpleAMQQueue) AMQQueueFactory.createAMQQueueImpl(_qname, false, _owner, false, false, _virtualHost, _arguments);

        _exchange = (DirectExchange)_virtualHost.getExchangeRegistry().getExchange(ExchangeDefaults.DIRECT_EXCHANGE_NAME);
View Full Code Here

            }
        }

        try
        {
            setVirtualHost(ApplicationRegistry.getInstance().createVirtualHost(new VirtualHostConfiguration(getClass().getName(), _config)));
        }
        catch (Exception e)
        {
            e.printStackTrace();
            fail(e.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.configuration.VirtualHostConfiguration

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.