Examples of connect()


Examples of com.alphacsp.cit.exec.InteractiveProcess.connect()

    public static void runInteractiveProcess(Process process, InputStream inputStream, PrintStream printStream) throws ProcessNonZeroExitCodeException {
        final InteractiveProcess interactiveProcess = new InteractiveProcess(process, inputStream, printStream);

        new Thread() {
            public void run() {
                interactiveProcess.connect();
            }
        }.start();

        try {
            int exitCode = interactiveProcess.waitFor();
View Full Code Here

Examples of com.alu.e3.installer.command.SSHCommand.connect()

    String ipAddress = logSource.getInternalIP();
    if(logger.isDebugEnabled()) {
      logger.debug("trying to connect to {} via ssh ...", ipAddress);
    }
    SSHCommand sshCommand = new SSHCommand();
    sshCommand.connect(logDestination.getSSHKey(), ipAddress, 22, logSource.getUser(), logSource.getPassword(), sshSessionTimeout);         
   
    // Start with E3Appender Java logs first
    // Get a local copy of the logging config file to determine log-file path
    String remoteLogPath = null;
    File localConfigFile = new File(instanceCollectionDir, "java-logging.cfg");
View Full Code Here

Examples of com.amazonaws.services.simpleemail.AWSJavaMailTransport.connect()

            msg.saveChanges();

            // Reuse one Transport object for sending all your messages
            // for better performance
            Transport t = new AWSJavaMailTransport(session, null);
            t.connect();
            t.sendMessage(msg, null);

            // Close your transport when you're completely done sending
            // all your messages
            t.close();
View Full Code Here

Examples of com.aphyr.riemann.client.RiemannClient.connect()

  public void sendEventsTest() throws IOException, InterruptedException, ServerError {
    final Server server = new OkServer();
    RiemannClient client = null;
    try {
      client = RiemannClient.tcp(server.start());
      client.connect();
      for (int i = 0; i < 10; i++) {
        final Event e = Util.createEvent();
        assertEquals(true, client.sendEventsWithAck(e));
        assertEquals(e, Util.soleEvent(server.received.poll()));
      }
View Full Code Here

Examples of com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection.connect()

        OpenOfficeConnection connection = new DokeosSocketOfficeConnection(port);
        try {
            if (verbose) {
                System.out.println("-- connecting to OpenOffice.org on port " + port);
            }
            connection.connect();
        } catch (ConnectException officeNotRunning) {
            System.err
                    .println("ERROR: connection failed. Please make sure OpenOffice.org is running and listening on port "
                            + port + ".");
            System.exit(EXIT_CODE_CONNECTION_FAILED);
View Full Code Here

Examples of com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection.connect()

        OpenOfficeConnection connection = new SocketOpenOfficeConnection(port);
        try {
            if (verbose) {
                System.out.println("-- connecting to OpenOffice.org on port " + port);
            }
            connection.connect();
        } catch (ConnectException officeNotRunning) {
            System.err
                    .println("ERROR: connection failed. Please make sure OpenOffice.org is running and listening on port "
                            + port + ".");
            System.exit(EXIT_CODE_CONNECTION_FAILED);
View Full Code Here

Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.connect()

        FlowGraphGenerator gen = new FlowGraphGenerator();
        gen.defineInput("in");
        gen.defineOperator("op1", "in", "out");
        gen.defineOperator("op2", "in", "out", FlowBoundary.SHUFFLE);
        gen.defineOutput("out");
        gen.connect("in", "op1").connect("op1", "op2").connect("op2", "out");

        FlowBlock b1 = FlowBlock.fromPorts(
                0,
                gen.toGraph(),
                new ArrayList<FlowElementInput>(gen.inputs("op1")),
View Full Code Here

Examples of com.barchart.udt.SocketUDT.connect()

        .getLocalSocketAddress();

    clientSocket.bind(clientAddress);
    assertTrue("Socket not bound!!", clientSocket.isBound());

    clientSocket.connect(serverAddress);
    assertTrue("Socket not connected!", clientSocket.isConnected());

    final InputStream socketIn = new NetInputStreamUDT(clientSocket);
    final OutputStream socketOut = new NetOutputStreamUDT(clientSocket);
View Full Code Here

Examples of com.barchart.udt.net.NetSocketUDT.connect()

      final NetSocketUDT socket = new NetSocketUDT();

      if (System.getProperty("os.name").contains("win"))
        socket.socketUDT().setOption(OptionUDT.UDT_MSS, 1052);

      socket.connect(new InetSocketAddress(host, port));
      final OutputStream os = socket.getOutputStream();

      // Start the monitor background task
      monResult = Executors.newSingleThreadExecutor().submit(
          new Callable<Boolean>() {
View Full Code Here

Examples of com.brewtab.irc.client.ClientFactory.connect()

        clientFactory.setNick(nick);
        clientFactory.setUsername("log4j");
        clientFactory.setHostname(localhost);
        clientFactory.setRealName("Brewtab IRC log4j appender");

        client = clientFactory.connect(url);
    }

    private void init() {
        final Runnable runner;
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.