Examples of BrokerOptions


Examples of org.apache.qpid.server.BrokerOptions

        _taskExecutor = new CurrentThreadTaskExecutor();
        _taskExecutor.start();
        _brokerShutdownProvider = mock(BrokerShutdownProvider.class);
        _systemConfig = new JsonSystemConfigImpl(_taskExecutor,
                                               mock(EventLogger.class), mock(LogRecorder.class),
                                               new BrokerOptions(),
                                               _brokerShutdownProvider);

        when(_brokerEntry.getId()).thenReturn(_brokerId);
        when(_brokerEntry.getType()).thenReturn(Broker.class.getSimpleName());
        Map<String, Object> attributesMap = new HashMap<String, Object>();
View Full Code Here

Examples of org.apache.qpid.server.BrokerOptions

        String testConfig = saveTestConfiguration(port, testConfiguration);

        if (_brokerType.equals(BrokerType.INTERNAL) && !existingInternalBroker())
        {
            setSystemProperty(BrokerProperties.PROPERTY_USE_CUSTOM_RMI_SOCKET_FACTORY, "false");
            BrokerOptions options = new BrokerOptions();

            options.setConfigurationStoreType(_brokerStoreType);
            options.setConfigurationStoreLocation(testConfig);
            options.setManagementMode(managementMode);
            if (managementMode)
            {
                options.setManagementModePassword(MANAGEMENT_MODE_PASSWORD);
            }

            //Set the log config file, relying on the log4j.configuration system property
            //set on the JVM by the JUnit runner task in module.xml.
            options.setLogConfigFileLocation(_logConfigFile.getAbsolutePath());

            Broker broker = new Broker();
            _logger.info("Starting internal broker (same JVM)");
            broker.startup(options);
View Full Code Here

Examples of org.apache.qpid.server.BrokerOptions

    private DurableConfigurationStore _store;
    private boolean _saved;

    public TestBrokerConfiguration(String storeType, String initialStoreLocation, final TaskExecutor taskExecutor)
    {
        BrokerOptions brokerOptions = new BrokerOptions();
        _taskExecutor = taskExecutor;
        _storeType = storeType;
        brokerOptions.setInitialConfigurationLocation(initialStoreLocation);
        final AbstractSystemConfig parentObject = new JsonSystemConfigImpl(taskExecutor,
                                                               mock(EventLogger.class),
                                                               mock(LogRecorder.class),
                                                               brokerOptions,
                                                               mock(BrokerShutdownProvider.class));
View Full Code Here

Examples of org.apache.qpid.server.BrokerOptions

        return setObjectAttributes(entry, attributes);
    }

    public boolean save(File configFile)
    {
        BrokerOptions brokerOptions = new BrokerOptions();
        brokerOptions.setConfigurationStoreLocation(configFile.getAbsolutePath());

        SystemConfigFactory configFactory =
                (new PluggableFactoryLoader<>(SystemConfigFactory.class)).get(_storeType);

        final SystemConfig parentObject = configFactory.newInstance(_taskExecutor,
View Full Code Here

Examples of org.apache.qpid.server.BrokerOptions

        template.sendBodyAndHeader("amqp:queue:ping", expectedBody, "cheese", 123);
    }

    @Before
    public void setUp() throws Exception {
        BrokerOptions options = new BrokerOptions();
        options.setConfigurationStoreType("memory");
        options.setInitialConfigurationLocation("src/test/resources/config.json");
        options.setLogConfigFileLocation("src/test/resources/log4j.xml");

        broker = new Broker();
        broker.startup(options);

        super.setUp();
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.