Examples of StoreConfigurationChangeListener


Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

            logStartupMessages(CurrentActor.get());

            _taskExecutor = new TaskExecutor();
            _taskExecutor.start();

            StoreConfigurationChangeListener storeChangeListener = new StoreConfigurationChangeListener(_store);
            RecovererProvider provider = new DefaultRecovererProvider((StatisticsGatherer)this, _virtualHostRegistry, _logRecorder, _rootMessageLogger, _taskExecutor, brokerOptions, storeChangeListener);
            ConfiguredObjectRecoverer<? extends ConfiguredObject> brokerRecoverer =  provider.getRecoverer(Broker.class.getSimpleName());
            _broker = (Broker) brokerRecoverer.create(provider, _store.getRootEntry());

            _virtualHostRegistry.setDefaultVirtualHostName((String)_broker.getAttribute(Broker.DEFAULT_VIRTUAL_HOST));
View Full Code Here

Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

        super.setUp();
        BrokerTestHelper.setUp();
        _broker = BrokerTestHelper.createBrokerMock();
        QpidServiceLoader<AuthenticationManagerFactory> serviceLoader = new QpidServiceLoader<AuthenticationManagerFactory>();
        AuthenticationProviderFactory authenticationProviderFactory = new AuthenticationProviderFactory(serviceLoader);
        StoreConfigurationChangeListener storeChangeListener = mock(StoreConfigurationChangeListener.class);
        _recoverer = new AuthenticationProviderRecoverer(authenticationProviderFactory, storeChangeListener);
        _configurationStore = mock(ConfigurationEntryStore.class);
    }
View Full Code Here

Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

        //Map<String, Object> attributes = entry.getAttributes();
        Map<String, Object> attributesCopy = validateAttributes(entry);

        attributesCopy.put(Broker.MODEL_VERSION, Model.MODEL_VERSION);

        StoreConfigurationChangeListener storeChangeListener = new StoreConfigurationChangeListener(entry.getStore());
        BrokerAdapter broker = new BrokerAdapter(entry.getId(), attributesCopy, _statisticsGatherer, _virtualHostRegistry,
                _logRecorder, _rootMessageLogger, _authenticationProviderFactory, _groupProviderFactory, _accessControlProviderFactory,
                _portFactory, _taskExecutor, entry.getStore(), _brokerOptions);

        broker.addChangeListener(storeChangeListener);
View Full Code Here

Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

        super.setUp();
        BrokerTestHelper.setUp();
        _broker = BrokerTestHelper.createBrokerMock();
        QpidServiceLoader<AuthenticationManagerFactory> serviceLoader = new QpidServiceLoader<AuthenticationManagerFactory>();
        AuthenticationProviderFactory authenticationProviderFactory = new AuthenticationProviderFactory(serviceLoader);
        StoreConfigurationChangeListener storeChangeListener = mock(StoreConfigurationChangeListener.class);
        _recoverer = new AuthenticationProviderRecoverer(authenticationProviderFactory, storeChangeListener);
        _configurationStore = mock(ConfigurationEntryStore.class);
    }
View Full Code Here

Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

        validateAttributes(attributes);

        Map<String, Object> attributesCopy = new HashMap<String, Object>(attributes);
        attributesCopy.put(Broker.MODEL_VERSION, Model.MODEL_VERSION);

        StoreConfigurationChangeListener storeChangeListener = new StoreConfigurationChangeListener(entry.getStore());
        BrokerAdapter broker = new BrokerAdapter(entry.getId(), attributesCopy, _statisticsGatherer, _virtualHostRegistry,
                _logRecorder, _rootMessageLogger, _authenticationProviderFactory, _groupProviderFactory, _accessControlProviderFactory,
                _portFactory, _taskExecutor, entry.getStore(), _brokerOptions);

        broker.addChangeListener(storeChangeListener);
View Full Code Here

Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

        logStartupMessages(startupLogger);

        _taskExecutor = new TaskExecutor();
        _taskExecutor.start();

        StoreConfigurationChangeListener storeChangeListener = new StoreConfigurationChangeListener(_store);
        RecovererProvider provider = new DefaultRecovererProvider((StatisticsGatherer)this, _virtualHostRegistry, _logRecorder,
                                                                  _taskExecutor, brokerOptions, storeChangeListener);
        ConfiguredObjectRecoverer<? extends ConfiguredObject> brokerRecoverer =  provider.getRecoverer(Broker.class.getSimpleName());
        _broker = (Broker) brokerRecoverer.create(provider, _store.getRootEntry());
        _broker.setEventLogger(startupLogger);
View Full Code Here

Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

    public Broker<?> perform(final DurableConfigurationStore store)
    {
        List<ConfiguredObjectRecord> upgradedRecords = upgrade(store);
        new GenericRecoverer(_systemConfig).recover(upgradedRecords);

        final StoreConfigurationChangeListener configChangeListener = new StoreConfigurationChangeListener(store);
        applyRecursively(_systemConfig.getBroker(), new Action<ConfiguredObject<?>>()
        {
            @Override
            public void performAction(final ConfiguredObject<?> object)
            {
View Full Code Here

Examples of org.apache.qpid.server.configuration.store.StoreConfigurationChangeListener

    public Broker<?> perform(final DurableConfigurationStore store)
    {
        List<ConfiguredObjectRecord> upgradedRecords = upgrade(store);
        new GenericRecoverer(_systemConfig).recover(upgradedRecords);

        final StoreConfigurationChangeListener configChangeListener = new StoreConfigurationChangeListener(store);
        applyRecursively(_systemConfig.getBroker(), new Action<ConfiguredObject<?>>()
        {
            @Override
            public void performAction(final ConfiguredObject<?> object)
            {
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.