Examples of MessageStoreCreator


Examples of org.apache.qpid.server.store.MessageStoreCreator

{
    private static final String[] STORE_TYPES = {BDBMessageStore.TYPE};

    public void testMessageStoreCreator()
    {
        MessageStoreCreator messageStoreCreator = new MessageStoreCreator();
        for (String type : STORE_TYPES)
        {
            MessageStore store = messageStoreCreator.createMessageStore(type);
            assertNotNull("Store of type " + type + " is not created", store);
        }
    }
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

        {

            throw new IllegalArgumentException("Attribute '"+ STORE_TYPE_ATTRIBUTE
                                               +"' is required and must be of type String.");
        }
        final MessageStoreCreator storeCreator = new MessageStoreCreator();
        if(!storeCreator.isValidType((String)storeType))
        {
            throw new IllegalArgumentException("Attribute '"+ STORE_TYPE_ATTRIBUTE
                                                +"' has value '"+storeType+"' which is not one of the valid values: "
                                                + storeCreator.getStoreTypes() + ".");

        }

        for(MessageStoreFactory factory : storeCreator.getFactories())
        {
            if(factory.getType().equalsIgnoreCase((String)storeType))
            {
                factory.validateAttributes(attributes);
            }
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

        convertedMap.put(org.apache.qpid.server.model.VirtualHost.STORE_PATH, storeConfiguration.getString(MessageStoreConstants.ENVIRONMENT_PATH_PROPERTY));

        convertedMap.put(MessageStoreConstants.OVERFULL_SIZE_ATTRIBUTE, storeConfiguration.getString(MessageStoreConstants.OVERFULL_SIZE_PROPERTY));
        convertedMap.put(MessageStoreConstants.UNDERFULL_SIZE_ATTRIBUTE, storeConfiguration.getString(MessageStoreConstants.UNDERFULL_SIZE_PROPERTY));

        for(MessageStoreFactory mf : new MessageStoreCreator().getFactories())
        {
            convertedMap.putAll(mf.convertStoreConfiguration(storeConfiguration));
        }

        return convertedMap;
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

            messageStore = (MessageStore) o;
        }
        else
        {
            messageStore = new MessageStoreCreator().createMessageStore(storeType);
        }

        final
        MessageStoreLogSubject
                storeLogSubject = new MessageStoreLogSubject(getName(), messageStore.getClass().getSimpleName());
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

        _groupProviderFactory = groupProviderFactory;
        _accessControlProviderFactory = accessControlProviderFactory;
        _portFactory = portFactory;
        _brokerOptions = brokerOptions;
        _securityManager = new SecurityManager(this, _brokerOptions.isManagementMode());
        _supportedVirtualHostStoreTypes = new MessageStoreCreator().getStoreTypes();
        _supportedBrokerStoreTypes = new BrokerConfigurationStoreCreator().getStoreTypes();
        _brokerStore = brokerStore;
        if (_brokerOptions.isManagementMode())
        {
            AuthenticationManager authManager = new SimpleAuthenticationManager(BrokerOptions.MANAGEMENT_MODE_USER_NAME, _brokerOptions.getManagementModePassword());
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

        Collection<String> expectedSupportedBrokerStoreTypes = new BrokerConfigurationStoreCreator().getStoreTypes();
        assertEquals("Unexpected supported broker store types"new HashSet<String>(expectedSupportedBrokerStoreTypes), new HashSet<String>(supportedBrokerStoreTypes));

        @SuppressWarnings("unchecked")
        Collection<String> supportedVirtualHostStoreTypes = (Collection<String>)brokerDetails.get(Broker.SUPPORTED_VIRTUALHOST_STORE_TYPES);
        Collection<String> expectedSupportedVirtualHostStoreTypes = new MessageStoreCreator().getStoreTypes();
        assertEquals("Unexpected supported virtual host store types"new HashSet<String>(expectedSupportedVirtualHostStoreTypes), new HashSet<String>(supportedVirtualHostStoreTypes));
    }
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

            messageStore = (MessageStore) o;
        }
        else
        {
            messageStore = new MessageStoreCreator().createMessageStore(storeType);
        }

        final
        MessageStoreLogSubject
                storeLogSubject = new MessageStoreLogSubject(this, messageStore.getClass().getSimpleName());
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

        _groupProviderFactory = groupProviderFactory;
        _accessControlProviderFactory = accessControlProviderFactory;
        _portFactory = portFactory;
        _brokerOptions = brokerOptions;
        _securityManager = new SecurityManager(this, _brokerOptions.isManagementMode());
        _supportedVirtualHostStoreTypes = new MessageStoreCreator().getStoreTypes();
        _supportedBrokerStoreTypes = new BrokerConfigurationStoreCreator().getStoreTypes();
        _brokerStore = brokerStore;
        if (_brokerOptions.isManagementMode())
        {
            AuthenticationManager authManager = new SimpleAuthenticationManager(BrokerOptions.MANAGEMENT_MODE_USER_NAME, _brokerOptions.getManagementModePassword());
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

        Collection<String> expectedSupportedBrokerStoreTypes = new BrokerConfigurationStoreCreator().getStoreTypes();
        assertEquals("Unexpected supported broker store types"new HashSet<String>(expectedSupportedBrokerStoreTypes), new HashSet<String>(supportedBrokerStoreTypes));

        @SuppressWarnings("unchecked")
        Collection<String> supportedVirtualHostStoreTypes = (Collection<String>)brokerDetails.get(Broker.SUPPORTED_VIRTUALHOST_STORE_TYPES);
        Collection<String> expectedSupportedVirtualHostStoreTypes = new MessageStoreCreator().getStoreTypes();
        assertEquals("Unexpected supported virtual host store types"new HashSet<String>(expectedSupportedVirtualHostStoreTypes), new HashSet<String>(supportedVirtualHostStoreTypes));
    }
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStoreCreator

        Collection<String> expectedSupportedBrokerStoreTypes = new BrokerConfigurationStoreCreator().getStoreTypes();
        assertEquals("Unexpected supported broker store types"new HashSet<String>(expectedSupportedBrokerStoreTypes), new HashSet<String>(supportedBrokerStoreTypes));

        @SuppressWarnings("unchecked")
        Collection<String> supportedVirtualHostStoreTypes = (Collection<String>)brokerDetails.get(Broker.SUPPORTED_VIRTUALHOST_STORE_TYPES);
        Collection<String> expectedSupportedVirtualHostStoreTypes = new MessageStoreCreator().getStoreTypes();
        assertEquals("Unexpected supported virtual host store types"new HashSet<String>(expectedSupportedVirtualHostStoreTypes), new HashSet<String>(supportedVirtualHostStoreTypes));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.