Examples of connect()


Examples of org.jboss.remoting.transport.multiplex.VirtualServerSocket.connect()

         // remote host and a MultiplexingManager to wrap it.
         log.info("connecting server socket to port: " + ++nextConnectPort);
         InetSocketAddress address1 = new InetSocketAddress(basicBehaviorServerHost, nextConnectPort);
         is = testSocket.getInputStream();
         is.read();
         serverSocket.connect(address1);

         assertTrue(serverSocket.isConnected());
         assertTrue(doOneServerSocketTest(serverSocket, nextBindPort));
         serverSocket.close();
         assertTrue(serverSocket.isBound() == true);
View Full Code Here

Examples of org.jboss.remoting.transport.multiplex.VirtualSocket.connect()

         is.read();

         try
         {
            socket1.connect(address1, 200);
            fail();
         }
         catch (SocketTimeoutException e)
         {
            if (e.getMessage().equals("connect timed out"))
View Full Code Here

Examples of org.jboss.remoting.transport.socket.SocketClientInvoker.connect()

   {
      log.info("entering " + getName());
     
      setupServer();
      SocketClientInvoker clientInvoker = new SocketClientInvoker(serverLocator);
      clientInvoker.connect();
      LeasePinger leasePinger = new LeasePinger(clientInvoker, "abc", 2000);
      log.info("expect WARN \"failed to ping to server\"");
      Method method = LeasePinger.class.getDeclaredMethod("setLeasePingerId", new Class[]{String.class});
      method.setAccessible(true);
      method.invoke(leasePinger, new Object[]{"dummyID"});
View Full Code Here

Examples of org.jboss.remoting3.Endpoint.connect()

            builder.set(Options.SASL_DISALLOWED_MECHANISMS, Sequence.of("JBOSS-LOCAL-USER"));
        } else {
            builder.set(Options.SASL_MECHANISMS, Sequence.of("JBOSS-LOCAL-USER"));
        }

        final IoFuture<Connection> futureConnection = endpoint.connect(connectionURI, builder.getMap(), new AuthenticationCallbackHandler(username, password));
        // wait for the connection to be established
        final Connection connection = IoFutureHelper.get(futureConnection, 5000, TimeUnit.MILLISECONDS);
        // create a remoting EJB receiver for this connection
        final EJBReceiver receiver = new RemotingConnectionEJBReceiver(connection);
        // associate it with the client context
View Full Code Here

Examples of org.jboss.test.securitymgr.ejb.IOStatelessSessionBean.connect()

            }
         }
      };
      int port = tmp.getLocalPort();
      t.start();
      bean.connect("localhost", port);
      tmp.close();
   }

   public void testClassLoaders() throws Exception
   {
View Full Code Here

Examples of org.jboss.test.securitymgr.interfaces.IOSession.connect()

            }
         }
      };
      int port = tmp.getLocalPort();
      t.start();
      bean.connect("localhost", port);
      tmp.close();
      bean.remove();
   }

   public void testCreateClassLoader() throws Exception
View Full Code Here

Examples of org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.connect()

      handler.setConnection(
        properties.getProperty("jbpm.console.task.service.host"),
        new Integer(properties.getProperty("jbpm.console.task.service.port")));
      ksession.getWorkItemManager().registerWorkItemHandler(
        "Human Task", handler);
      handler.connect();
      System.out.println("Successfully loaded default package from Guvnor");
      return ksession;
    } catch (Throwable t) {
      throw new RuntimeException(
        "Could not initialize stateful knowledge session: "
View Full Code Here

Examples of org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler.connect()

   
    // register human task work item.
    SyncWSHumanTaskHandler humanTaskHandler = new SyncWSHumanTaskHandler(
        taskService, ksession);
      humanTaskHandler.setLocal(true);
      humanTaskHandler.connect();
      ksession.getWorkItemManager().registerWorkItemHandler("Human Task", humanTaskHandler);
 
    // register other work items
    ksession.getWorkItemManager().registerWorkItemHandler("Log", new SystemOutWorkItemHandler());
    ksession.getWorkItemManager().registerWorkItemHandler("Email", new SystemOutWorkItemHandler());
View Full Code Here

Examples of org.jbpm.task.service.TaskClient.connect()

            new JMSTaskClientHandler(SystemEventListenerFactory
                .getSystemEventListener()),
            WSHumanTaskJMSProperties.getInstance().getProperties(),
            new InitialContext(WSHumanTaskJMSProperties.getInstance().getProperties())));
        field.set(this, client);
        boolean connected = client.connect();
        if (!connected) {
          throw new IllegalArgumentException("Could not connect to the task client");
        }
      }
      super.connect();
View Full Code Here

Examples of org.jclouds.ssh.SshClient.connect()

      assertEquals(numNodes, nodes.size(), "wrong number of nodes");
      for (NodeMetadata node : nodes) {
         assertTrue(node.getGroup().equals("test-launch-cluster"));
         logger.debug("Created Node: %s", node);
         SshClient client = context.utils().sshForNode().apply(node);
         client.connect();
         ExecResponse hello = client.exec("echo hello");
         assertEquals(hello.getOutput().trim(), "hello");
      }
      context.getComputeService().destroyNodesMatching(new Predicate<NodeMetadata>() {
         @Override
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.