Examples of ConnectionInfo


Examples of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.ConnectionInfo

   
    /**
     * @return a new object instance
     */
    public DataStructure createObject() {
        return new ConnectionInfo();
    }
View Full Code Here

Examples of net.yacy.cora.protocol.ConnectionInfo

    private void storeConnectionInfo(final HttpUriRequest httpUriRequest) {
      final int port = httpUriRequest.getURI().getPort();
      final String thost = httpUriRequest.getURI().getHost();
      //assert thost != null : "uri = " + httpUriRequest.getURI().toString();
      ConnectionInfo.addConnection(new ConnectionInfo(
          httpUriRequest.getURI().getScheme(),
          port == 80 ? thost : thost + ":" + port,
          httpUriRequest.getMethod() + " " + httpUriRequest.getURI().getPath(),
          httpUriRequest.hashCode(),
          System.currentTimeMillis(),
View Full Code Here

Examples of org.activemq.message.ConnectionInfo

      return;
    }

    this.isConnectionInfoSentToBroker = true;
    ensureClientIDInitialised();
    ConnectionInfo info = new ConnectionInfo();
    info.setClientId(this.clientID);
    info.setHostName(IdGenerator.getHostName());
    info.setUserName(userName);
    info.setPassword(password);
    info.setStartTime(startTime);
    info.setStarted(started.get());
    info.setClosed(closed || closing);
    info.setClientVersion(connectionMetaData.getProviderVersion());
    info.setWireFormatVersion(transportChannel
        .getCurrentWireFormatVersion());
    if (info.getProperties() != null) {
      info.getProperties().setProperty(ConnectionInfo.NO_DELAY_PROPERTY,
          new Boolean(!useAsyncSend).toString());
    }
    if (quickClose && info.isClosed()) {
      asyncSendPacket(info);
    } else {
      syncSendPacket(info, timeout);
    }
  }
View Full Code Here

Examples of org.apache.activemq.apollo.openwire.command.ConnectionInfo

    /**
     * @return a new object instance
     */
    public DataStructure createObject() {
        return new ConnectionInfo();
    }
View Full Code Here

Examples of org.apache.activemq.command.ConnectionInfo

        };
        thead.start();
    }

    protected void startBridge() throws Exception {
        connectionInfo = new ConnectionInfo();
        connectionInfo.setConnectionId(new ConnectionId(idGenerator.generateId()));
        connectionInfo.setClientId(idGenerator.generateId());
        connectionInfo.setUserName(userName);
        connectionInfo.setPassword(password);
        localBroker.oneway(connectionInfo);
        ConnectionInfo remoteInfo = new ConnectionInfo();
        connectionInfo.copy(remoteInfo);
        remoteInfo.setBrokerMasterConnector(true);
        remoteBroker.oneway(connectionInfo);
        sessionInfo = new SessionInfo(connectionInfo, 1);
        localBroker.oneway(sessionInfo);
        remoteBroker.oneway(sessionInfo);
        producerInfo = new ProducerInfo(sessionInfo, 1);
View Full Code Here

Examples of org.apache.activemq.command.ConnectionInfo

        if (localBridgeStarted.compareAndSet(false, true)) {
            synchronized (this) {

                remoteBrokerNameKnownLatch.await();

                localConnectionInfo = new ConnectionInfo();
                localConnectionInfo.setConnectionId(new ConnectionId(idGenerator.generateId()));
                localClientId = "NC_" + remoteBrokerName + "_inbound" + configuration.getBrokerName();
                localConnectionInfo.setClientId(localClientId);
                localConnectionInfo.setUserName(configuration.getUserName());
                localConnectionInfo.setPassword(configuration.getPassword());
View Full Code Here

Examples of org.apache.activemq.command.ConnectionInfo

                    remoteBroker.oneway(brokerInfo);
                }
                if (remoteConnectionInfo != null) {
                    remoteBroker.oneway(remoteConnectionInfo.createRemoveCommand());
                }
                remoteConnectionInfo = new ConnectionInfo();
                remoteConnectionInfo.setConnectionId(new ConnectionId(idGenerator.generateId()));
                remoteConnectionInfo.setClientId("NC_" + configuration.getBrokerName() + "_outbound");
                remoteConnectionInfo.setUserName(configuration.getUserName());
                remoteConnectionInfo.setPassword(configuration.getPassword());
                remoteBroker.oneway(remoteConnectionInfo);
View Full Code Here

Examples of org.apache.activemq.command.ConnectionInfo

    public void doConsume(Command command) {
        // The instanceof can be avoided, but that would require modifying the
        // Command clas tree and that would require too much effort right
        // now.
        if (command instanceof ConnectionInfo) {
            ConnectionInfo connectionInfo = (ConnectionInfo)command;

            SSLSocket sslSocket = (SSLSocket)this.socket;

            SSLSession sslSession = sslSocket.getSession();

            X509Certificate[] clientCertChain;
            try {
                clientCertChain = (X509Certificate[])sslSession.getPeerCertificates();
            } catch (SSLPeerUnverifiedException e) {
                clientCertChain = null;
            }

            connectionInfo.setTransportContext(clientCertChain);
        }

        super.doConsume(command);
    }
View Full Code Here

Examples of org.apache.activemq.command.ConnectionInfo

                return thread;
            }
        });
        // asyncConnectionThread.allowCoreThreadTimeOut(true);

        this.info = new ConnectionInfo(new ConnectionId(CONNECTION_ID_GENERATOR.generateId()));
        this.info.setManageable(true);
        this.connectionSessionId = new SessionId(info.getConnectionId(), -1);

        this.transport.setTransportListener(this);
View Full Code Here

Examples of org.apache.activemq.command.ConnectionInfo

            // We need to replay all the previously collected state objects
            // for this newly added consumer.
            if (AdvisorySupport.isConnectionAdvisoryTopic(info.getDestination())) {
                // Replay the connections.
                for (Iterator<ConnectionInfo> iter = connections.values().iterator(); iter.hasNext();) {
                    ConnectionInfo value = iter.next();
                    ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic();
                    fireAdvisory(context, topic, value, info.getConsumerId());
                }
            }

            // We need to replay all the previously collected destination
            // objects
            // for this newly added consumer.
            if (AdvisorySupport.isDestinationAdvisoryTopic(info.getDestination())) {
                // Replay the destinations.
                for (Iterator<DestinationInfo> iter = destinations.values().iterator(); iter.hasNext();) {
                    DestinationInfo value = iter.next();
                    ActiveMQTopic topic = AdvisorySupport.getDestinationAdvisoryTopic(value.getDestination());
                    fireAdvisory(context, topic, value, info.getConsumerId());
                }
            }

            // Replay the producers.
            if (AdvisorySupport.isProducerAdvisoryTopic(info.getDestination())) {
                for (Iterator<ProducerInfo> iter = producers.values().iterator(); iter.hasNext();) {
                    ProducerInfo value = iter.next();
                    ActiveMQTopic topic = AdvisorySupport.getProducerAdvisoryTopic(value.getDestination());
                    fireProducerAdvisory(context, topic, value, info.getConsumerId());
                }
            }

            // Replay the consumers.
            if (AdvisorySupport.isConsumerAdvisoryTopic(info.getDestination())) {
                for (Iterator<ConsumerInfo> iter = consumers.values().iterator(); iter.hasNext();) {
                    ConsumerInfo value = iter.next();
                    ActiveMQTopic topic = AdvisorySupport.getConsumerAdvisoryTopic(value.getDestination());
                    fireConsumerAdvisory(context, topic, value, info.getConsumerId());
                }
            }
        }
        return answer;
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.