Examples of waitFor()


Examples of org.apache.derbyTesting.functionTests.harness.TimedProcess.waitFor()

       
        // wait for this process to terminate, upto a wait period
        // of 'timeoutSecondsForProcess'
        // if process has already been terminated, this call will
        // return immediately.
        tp.waitFor(timeoutSecondsForProcess);
        pr = null;
       
        if (outTimedOut || errTimedOut)
            System.out.println(" Reading from process streams timed out.. ");
View Full Code Here

Examples of org.apache.hadoop.hbase.MultithreadedTestUtil.TestContext.waitFor()

      scanners.add(scanner);
      ctx.addThread(scanner);
    }

    ctx.startThreads();
    ctx.waitFor(millisToRun);
    ctx.stop();

    LOG.info("Finished test. Writers:");
    for (AtomicityWriter writer : writers) {
      LOG.info("  wrote " + writer.numWritten.get());
View Full Code Here

Examples of org.apache.hadoop.hbase.MultithreadedTestUtil.TestContext.waitFor()

      scanners.add(scanner);
      ctx.addThread(scanner);
    }

    ctx.startThreads();
    ctx.waitFor(millisToRun);
    ctx.stop();

    LOG.info("Loaders:");
    LOG.info("  loaded " + loader.numBulkLoads.get());
    LOG.info("  compations " + loader.numCompactions.get());
View Full Code Here

Examples of org.apache.hadoop.hbase.index.coprocessor.regionserver.MultithreadedTestUtil.TestContext.waitFor()

      scanners.add(scanner);
      ctx.addThread(scanner);
    }

    ctx.startThreads();
    ctx.waitFor(millisToRun);
    ctx.stop();

    LOG.info("Finished test. Writers:");
    for (AtomicityWriter writer : writers) {
      LOG.info("  wrote " + writer.numWritten.get());
View Full Code Here

Examples of org.apache.hadoop.test.MultithreadedTestUtil.TestContext.waitFor()

      harness.addReplicationTriggerThread(500);
      harness.addFailoverThread(5000);
      harness.startThreads();
      testers.startThreads();
     
      testers.waitFor(STRESS_RUNTIME);
      testers.stop();
      harness.stopThreads();
    } finally {
      System.err.println("===========================\n\n\n\n");
      harness.shutdown();
View Full Code Here

Examples of org.apache.harmony.rmi.common.SubProcess.waitFor()

            server = startProcess("org.apache.harmony.rmi.DGCTest",
                    SERVER_ID_3, config, endorsed);
            server.pipeInput();
            server.pipeError();
            server.closeOutput();
            assertEquals("Test server return", 0, server.waitFor());
        } finally {
            if (server != null) {
                server.destroy();
            }
        }
View Full Code Here

Examples of org.apache.helix.ExternalCommand.waitFor()

  }

  public static ProcessStateCode getProcessState(String processId) throws Exception {
    if (OS_NAME.equals("Mac OS X") || OS_NAME.equals("Linux")) {
      ExternalCommand cmd = ExternalCommand.start("ps", processId);
      cmd.waitFor();

      // split by new lines
      // should return 2 lines for an existing process, or 1 line for a non-existing process
      String lines[] = cmd.getStringOutput().split("[\\r\\n]+");
      if (lines.length != 2) {
View Full Code Here

Examples of org.apache.http.nio.reactor.ListenerEndpoint.waitFor()

        t.start();
       
        // Wait for the endpoint to become ready, i.e. for the listener to start accepting
        // requests.
        try {
            endpoint.waitFor();
        } catch (InterruptedException e) {
            log.warn("HttpCoreNIOListener#start() was interrupted");
        }
       
        log.info((sslContext == null ? "HTTP" : "HTTPS") + " Listener started on" +
View Full Code Here

Examples of org.apache.http.nio.reactor.ListenerEndpoint.waitFor()

        this.server.start(serviceHandler);
        this.client.start(clientHandler);
       
       
        ListenerEndpoint endpoint = this.server.getListenerEndpoint();
        endpoint.waitFor();
        InetSocketAddress serverAddress = (InetSocketAddress) endpoint.getAddress();
       
        for (int i = 0; i < connNo; i++) {
            this.client.openConnection(
                    new InetSocketAddress("localhost", serverAddress.getPort()),
View Full Code Here

Examples of org.apache.http.nio.reactor.ListenerEndpoint.waitFor()

        this.server.start(serviceHandler);
        this.client.start(clientHandler);
       
        ListenerEndpoint endpoint = this.server.getListenerEndpoint();
        endpoint.waitFor();
        InetSocketAddress serverAddress = (InetSocketAddress) endpoint.getAddress();
       
        this.client.openConnection(
                new InetSocketAddress("localhost", serverAddress.getPort()),
                null);
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.