Examples of connect()


Examples of com.taobao.gecko.service.RemotingClient.connect()

        // ȷ�Ϸ�����������
        final ClientConfig clientConfig = new ClientConfig();
        clientConfig.setWireFormatType(new MetamorphosisWireFormatType());
        final RemotingClient remotingClient = RemotingFactory.connect(clientConfig);
        remotingClient.connect(serverUrl);
        remotingClient.awaitReadyInterrupt(serverUrl);
        assertTrue(remotingClient.isConnected(serverUrl));
        remotingClient.stop();

        this.broker.stop();
View Full Code Here

Examples of com.tinkerpop.gremlin.driver.Cluster.connect()

            final List<Thread> threads = IntStream.range(0, clients).mapToObj(t -> new Thread(() -> {
                try {
                    final CountDownLatch latch = new CountDownLatch(requests);

                    final Client client = cluster.connect();
                    client.init();

                    barrier.await();
                    final long start = System.nanoTime();
View Full Code Here

Examples of com.trilead.ssh2.Connection.connect()

            Element itemVariableElement = (Element) ipList.item(j);
           
            s_logger.info("Attempting to SSH into agent " + itemVariableElement.getTextContent());
            try {
              Connection conn = new Connection(itemVariableElement.getTextContent());
            conn.connect(null, 60000, 60000);

            s_logger.info("SSHed successfully into agent " + itemVariableElement.getTextContent());

            boolean isAuthenticated = conn.authenticateWithPassword("root",
                "password");
View Full Code Here

Examples of com.twitter.hbc.core.Client.connect()

            .authentication(auth)
            .processor(new LineStringProcessor(queue))
            .build();

    // Establish a connection
    client.connect();

    // Do whatever needs to be done with messages
    for (int msgRead = 0; msgRead < 1000; msgRead++) {
      String msg = queue.take();
      System.out.println(msg);
View Full Code Here

Examples of com.twitter.hbc.httpclient.BasicClient.connect()

            .authentication(auth)
            .processor(new StringDelimitedProcessor(queue))
            .build();

    // Establish a connection
    client.connect();

    // Do whatever needs to be done with messages
    for (int msgRead = 0; msgRead < 1000; msgRead++) {
      if (client.isDone()) {
        System.out.println("Client connection closed unexpectedly: " + client.getExitEvent().getMessage());
View Full Code Here

Examples of com.twitter.hbc.twitter4j.Twitter4jSitestreamClient.connect()

    // Wrap our BasicClient with the twitter4j client
    Twitter4jSitestreamClient t4jClient = new Twitter4jSitestreamClient(
            client, queue, Lists.newArrayList(listener), service);

    // Establish a connection
    t4jClient.connect();
    for (int threads = 0; threads < numProcessingThreads; threads++) {
      // This must be called once per processing thread
      t4jClient.process();
    }
View Full Code Here

Examples of com.twitter.hbc.twitter4j.Twitter4jStatusClient.connect()

    // Wrap our BasicClient with the twitter4j client
    Twitter4jStatusClient t4jClient = new Twitter4jStatusClient(
      client, queue, Lists.newArrayList(listener1, listener2), service);

    // Establish a connection
    t4jClient.connect();
    for (int threads = 0; threads < numProcessingThreads; threads++) {
      // This must be called once per processing thread
      t4jClient.process();
    }
View Full Code Here

Examples of com.ubx1.pdpscanner.server.database.MySQLConnection.connect()

     * Login validation
     */
    Validator.validateLogin(username, password);

    MySQLConnection conn = new MySQLConnection();
    conn.connect();

    username = "'" + username + "'";

    ResultSet rs = conn.SQLSelect("SELECT * FROM users WHERE username = "
        + username + " LIMIT 1");
View Full Code Here

Examples of com.unboundid.ldap.sdk.LDAPConnection.connect()

      } else {
        logger.error("Unsupported LDAP URL scheme: " + ldapUrl.getScheme());
        return null;
      }

      conn.connect(ldapHost, ldapPort);

      if (ldapUrl.getScheme().equalsIgnoreCase("ldap+tls")) {
        SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager());
        ExtendedResult extendedResult = conn.processExtendedOperation(
            new StartTLSExtendedRequest(sslUtil.createSSLContext()));
View Full Code Here

Examples of com.vmware.apputils.version.ExtendedAppUtil.connect()

      if(context == null) {
        String serviceUrl = "https://" + vCenterAddress + "/sdk/vimService";
        String[] params = new String[] {"--url", serviceUrl, "--username", vCenterUserName, "--password", vCenterPassword };
        ExtendedAppUtil appUtil = ExtendedAppUtil.initialize(vCenterAddress + "-" + s_seq++, params);
       
        appUtil.connect();
        context = new VmwareContext(appUtil, vCenterAddress);
        context.registerStockObject("username", vCenterUserName);
        context.registerStockObject("password", vCenterPassword);
       
        s_contextMap.put(vCenterAddress, context);
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.