129130131132133134135136137138139
me.setStatus(ExchangeStatus.DONE); channel.send(me); if (!done.get()) { synchronized (done) { done.wait(5000); } } assertTrue("Secondary thread didn't finish", done.get()); assertTrue("Exception in secondary thread", success.get());
258259260261262263264265266267268
tickleOpening = tickleOpening("post_open_deploy"); } } synchronized (signaller) { try { signaller.wait(period); } catch (InterruptedException e) { // Go to the loop check. } } now = System.currentTimeMillis();
249250251252253254255256257258259
out.write(data); } out.flush(); synchronized (complete) { if (!complete.get()) { complete.wait(30000); } } assertTrue(complete.get()); }
498499500501502503504505506507508
executor.registerListener(EventType.C_M_MODIFY_TABLE, new DoneListener(done)); this.admin.modifyTable(tableName, htd); while (!done.get()) { synchronized (done) { try { done.wait(100); } catch (InterruptedException e) { e.printStackTrace(); } } }
15901591159215931594159515961597159815991600
stConnection.start(); while (lock.get()) { synchronized (lock) { lock.wait(); } } if (getFailureStatus()) { fail("problem with message listener");
16241625162616271628162916301631163216331634
_topicConnection.start(); while (lock.get()) { synchronized (lock) { lock.wait(); } } if (getFailureStatus()) { fail("problem with XA message listener");
160161162163164165166167168169170
}, null, null); service.start(); monitorMBean.start(); synchronized (notificationSet) { if (!notificationSet.get()) { notificationSet.wait(5000); } } assertTrue(notificationSet.get()); } }
9293949596979899100101102
// wait for t1 to finish setting fields synchronized (t1Done) { while (!t1Done.get()) { try { t1Done.wait(); } catch (InterruptedException e) { } } }
248249250251252253254255256257258
15591560156115621563156415651566156715681569