Examples of join()


Examples of org.apache.activemq.util.ProducerThread.join()

        remoteBroker.stop();
        remoteBroker.waitUntilStopped();
        startRemoteBroker(false);

        producer.join();
        consumer.join();

        assertEquals(1000, consumer.getReceived());

    }
View Full Code Here

Examples of org.apache.airavata.core.gfac.provider.utils.InputStreamToFileWriter.join()

            // wait for the process (application) to finish executing
            int returnValue = process.waitFor();

            // make sure other two threads are done
            t1.join();
            t2.join();

            /*
             * check return value. usually not very helpful to draw conclusions based on return values so don't bother.
             * just provide warning in the log messages
             */
 
View Full Code Here

Examples of org.apache.airavata.gfac.local.utils.InputStreamToFileWriter.join()

            int returnValue = process.waitFor();

            // make sure other two threads are done
            standardOutWriter.join();
            standardErrorWriter.join();

            /*
             * check return value. usually not very helpful to draw conclusions based on return values so don't bother.
             * just provide warning in the log messages
             */
 
View Full Code Here

Examples of org.apache.airavata.gfac.utils.InputStreamToFileWriter.join()

            // wait for the process (application) to finish executing
            int returnValue = process.waitFor();

            // make sure other two threads are done
            standardOutWriter.join();
            standardErrorWriter.join();

            /*
             * check return value. usually not very helpful to draw conclusions based on return values so don't bother.
             * just provide warning in the log messages
             */
 
View Full Code Here

Examples of org.apache.avro.ipc.HttpServer.join()

  public static void main (String[] args) throws InterruptedException, IOException {
    Protocol protocol = Protocol.parse(new File("test-proto.avpr"));

    HttpServer server = new HttpServer(new Responder(protocol), 8080);
    server.start();
    server.join();
  }
}
View Full Code Here

Examples of org.apache.bookkeeper.proto.BookieServer.join()

                @Override
                public void addComplete(int rc, LedgerHandle lh, long entryId, Object ctx) {
                    // dont care, only trying to trigger OOM
                }
            }, null);
        bkServer.join();
        Assert.assertFalse("Should have died", bkServer.isRunning());
        Assert.assertEquals("Should have died with server exception code",
                            ExitCode.SERVER_EXCEPTION, bkServer.getExitCode());
    }
}
View Full Code Here

Examples of org.apache.clerezza.triaxrs.testutils.BodyCheckerThread.join()

    BodyCheckerThread thread2 = new BodyCheckerThread(handler,
        requestMock2, queryString2.getBytes(), iterations);
    thread1.start();
    thread2.start();
    thread1.join();
    thread2.join();
    Assert.assertFalse(thread1.hasFailed());
    Assert.assertFalse(thread2.hasFailed());
  }

  @Test
View Full Code Here

Examples of org.apache.derbyTesting.system.nstest.utils.MemCheck.join()

      System.out
      .println("Finished creating the database, TEST THREADS WILL NOT RUN!!");
      // Finally also stop the memory checker thread, else the test will
      // remain hung!
      mc.stopNow = true;
      mc.join();
      return;
    }

    // Table was created by some other object, so we assume it is already
    // loaded
View Full Code Here

Examples of org.apache.derbyTesting.system.nstest.utils.SequenceReader.join()

        }

        // stop the sequence reader thread
    sequenceReader.stopNow = true;
    sequenceReader.interrupt();
    sequenceReader.join();

    // Print statistics
        printStatistics();

    // Finally also stop the memory checker thread
View Full Code Here

Examples of org.apache.derbyTesting.system.sttest.tools.MemCheck.join()

    for (int i = 0; i < connections_to_make; i++) {
      testsessions[i].join();
    }
    try {
      mc.stopNow = true;
      mc.join();
    } catch (Throwable t) {
      throw (t);
    }
  }
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.