Examples of waitFor()


Examples of abbot.util.ProcessOutputHandler.waitFor()

                }
            };
            // FIXME add a timeout
            p.waitFor();
            assertEquals("Wrong exit value", 0, p.exitValue());
            handler.waitFor();
            assertEquals("Wrong output from subprocess",
                         OUTPUT_TEXT + LS, sb.toString());
            assertEquals("Wrong error from subprocess",
                         ERROR_TEXT + LS, sbe.toString());
        }
View Full Code Here

Examples of aleph.Join.waitFor()

    Worker worker = new Worker(solution, nextRow, i, depth-1);
    worker.start((PE) e.next(), join);
  }
      }
    }
    join.waitFor();
  }

  boolean getLeftDiag(int i, int j) {
    return left[i+j];
  }
View Full Code Here

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

                interactiveProcess.connect();
            }
        }.start();

        try {
            int exitCode = interactiveProcess.waitFor();
            if (exitCode != 0) {
                throw new ProcessNonZeroExitCodeException(process, exitCode);
            }
        } catch (InterruptedException e) {
            LOG.info("InterruptedException!, killing the process", e);
View Full Code Here

Examples of com.couchbase.client.http.AsyncConnectionRequest.waitFor()

  }

  public boolean writeOp(HttpOperation op) {
    AsyncConnectionRequest connRequest = connMgr.requestConnection();
    try {
      connRequest.waitFor();
    } catch (InterruptedException e) {
      getLogger().warn(
          "Interrupted while trying to get a connection.");
      connRequest.cancel();
      return false;
View Full Code Here

Examples of com.google.code.sshd.ClientChannel.waitFor()

            ClientChannel channel = session.createChannel("shell");
            channel.setIn(new ConsoleReader().getInput());
            channel.setOut(System.out);
            channel.setErr(System.err);
            channel.open();
            channel.waitFor(ClientChannel.CLOSED, 0);
        } catch (Throwable t) {
            t.printStackTrace();
            System.exit(1);
        } finally {
            try {
View Full Code Here

Examples of com.intellij.execution.process.BaseOSProcessHandler.waitFor()

          super.processTerminated(event);
        }
      });

      handler.startNotify();
      handler.waitFor();
    }
    catch (IOException e) {
      context.errorHandler("process throw exception: " + e.getMessage());
      return false;
    }
View Full Code Here

Examples of com.intellij.execution.process.OSProcessHandler.waitFor()

                    }
                    console.print(event.getText(), contentType);
                }
            });
            osph.startNotify();
            osph.waitFor();
            osph.destroyProcess(); //is that needed if waitFor has returned?
            successfullyStopped = osph.getProcess().exitValue() == 0;

        } catch (IOException e) {
            LOG.error(e);
View Full Code Here

Examples of com.intellij.util.concurrency.Semaphore.waitFor()

        }
      });
    }
    catch (IOException e) {/**/}

    semaphore.waitFor(1000);
    return evalResult.get();
  }

  public void debuggerResumed(final VmIsolate isolate) {
    LOG.debug("debugger resumed: " + isolate.getId());
View Full Code Here

Examples of com.jamieallen.sdisruptor.ConsumerBarrier.waitFor()

        };

        new Thread(runnable).start();

        long expectedWorkSequence = expectedNumberMessages;
        long completedWorkSequence = consumerBarrier.waitFor(expectedNumberMessages);
        assertTrue(completedWorkSequence >= expectedWorkSequence);
    }

    @Test
    public void shouldInterruptDuringBusySpin() throws Exception
View Full Code Here

Examples of com.jogamp.opencl.util.MultiQueueBarrier.waitFor()

    //                System.out.println("C kernels");
                    CLEventList events1 = new CLEventList(2);
                    queue1.put1DRangeKernel(vectorAddKernel1, 0, elements, groupSize, events1)
                          .putReadBuffer(clBufferC, false, events1);

                    barrier.waitFor(queue1, events1);

                }
            };

            Thread thread2 = new Thread("D") {
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.