Examples of open()


Examples of org.apache.qpid.proton.engine.Session.open()

         {
            try
            {
               ProtonSession protonSession = getSession(session);
               session.setContext(protonSession);
               session.open();

            }
            catch (HornetQAMQPException e)
            {
               protonConnection.setCondition(new ErrorCondition(e.getAmqpError(), e.getMessage()));
View Full Code Here

Examples of org.apache.qpid.proton.engine.impl.ConnectionImpl.open()

            {
                sasl.server();
                sasl.setMechanisms(new String[]{"ANONYMOUS"});
                sasl.done(Sasl.SaslOutcome.PN_SASL_OK);
            }
            connection.open();
        }
        //process active connectors, handling opened & closed connections as needed
        for (Connector c = _driver.connector(); c != null; c = _driver.connector())
        {
            _logger.log(Level.FINE, "Processing active connector " + c);
View Full Code Here

Examples of org.apache.qpid.proton.engine.impl.ReceiverImpl.open()

//        Target target = new Target();
//        target.setAddress(UUID.randomUUID().toString());
//        receiver.setTarget(target);
        receiver.flow(prefetch);
        configureQos(receiver, qos);
        receiver.open();
        pumpOut();
        return new AmqpReceiver(this, receiver, qos);
    }

    private void configureQos(Link link, QoS qos) {
View Full Code Here

Examples of org.apache.qpid.proton.engine.impl.SenderImpl.open()

//        Source source = new Source();
//        source.setAddress(UUID.randomUUID().toString());
//        sender.setSource(source);
        sender.setTarget(target);
        configureQos(sender, qos);
        sender.open();
        pumpOut();
        return new AmqpSender(this, sender, qos);
    }

    public AmqpReceiver createReceiver(Source source) {
View Full Code Here

Examples of org.apache.qpid.proton.engine.impl.SessionImpl.open()

    }

    public AmqpSession createSession() {
        assertExecuting();
        SessionImpl session = connection.session();
        session.open();
        pumpOut();
        return new AmqpSession(this, session);
    }

    public int getMaxSessions() {
View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl.open()

            attributes.put(Binding.ARGUMENTS, arguments);
        }
        attributes.put(Binding.ID, id);

        BindingImpl binding = (BindingImpl) _vhost.getObjectFactory().create(Binding.class, attributes, queue, exchange);
        binding.open();
        return binding;
    }

    private int routeMessage(String routingKey, long messageNumber)
    {
View Full Code Here

Examples of org.apache.qpid.server.model.Broker.open()

        BrokerStoreUpgraderAndRecoverer upgrader = new BrokerStoreUpgraderAndRecoverer(_systemConfig);
        Broker broker = upgrader.perform(_store);
        _broker = broker;

        broker.setEventLogger(startupLogger);
        broker.open();

        if (broker.getState() == State.ACTIVE)
        {
            startupLogger.message(BrokerMessages.READY());
            broker.setEventLogger(eventLogger);
View Full Code Here

Examples of org.apache.qpid.server.model.PreferencesProvider.open()

                                                 "{\"test_user\":{\"pref1\": \"pref1Value\", \"pref2\": 1.0} }");
        try
        {
            attributes.put(FileSystemPreferencesProvider.PATH, file.getAbsolutePath());
            PreferencesProvider provider = new FileSystemPreferencesProviderImpl(attributes,_authenticationProvider);
            provider.open();
            assertNotNull("Preferences provider was not recovered", provider);
            assertEquals("Unexpected name", "test-provider", provider.getName());
            assertEquals("Unexpected id", id, provider.getId());
            assertEquals("Unexpected path", file.getAbsolutePath(), provider.getAttribute(
                    FileSystemPreferencesProvider.PATH));
View Full Code Here

Examples of org.apache.qpid.server.model.SystemConfig.open()

        final SystemConfig parentObject = configFactory.newInstance(_taskExecutor,
                                                                   mock(EventLogger.class),
                                                                   mock(LogRecorder.class),
                                                                   brokerOptions);

        parentObject.open();
        DurableConfigurationStore configurationStore = parentObject.getConfigurationStore();
        configurationStore.closeConfigurationStore();

        final List<ConfiguredObjectRecord> initialRecords = new ArrayList<>();
        _store.visitConfiguredObjectRecords(new ConfiguredObjectRecordHandler()
View Full Code Here

Examples of org.apache.qpid.server.model.TrustStore.open()

            Map<String, Object> properties =  new HashMap<String, Object>(attributes);
            properties.remove(mandatoryProperties[i]);
            try
            {
                TrustStore trustStore = new FileTrustStoreImpl(properties, broker);
                trustStore.open();
                fail("Cannot create key store without a " + mandatoryProperties[i]);
            }
            catch(IllegalArgumentException e)
            {
                // pass
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.