153154155156157158159160161162163
} }); synchronized (active) { while (active.get() == true) active.wait(); } } else { dialog.setVisible(true); }
179180181182183184185186187188189
lastUpdate = now; tickleOpening = tickleOpening("post_open_deploy"); } synchronized (signaller) { try { signaller.wait(period); } catch (InterruptedException e) { // Go to the loop check. } } now = System.currentTimeMillis();
99100101102103104105106107108109
stopJobs(jobListener); // wait for stopping to properly occur while (!done.get()) { synchronized (done) { done.wait(); } } } else { // wait a bit more then the internal hadoop threads
182183184185186187188189190191192
514515516517518519520521522523524
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(); } } }
148149150151152153154155156157158
}, null, null); service.start(); monitorMBean.start(); synchronized (notificationSet) { if (!notificationSet.get()) { notificationSet.wait(5000); } } assertTrue(notificationSet.get()); } }
125126127128129130131132133134135
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());
8889909192939495969798
} } }, null); synchronized (waiter) { while (!waiter.get()) waiter.wait(); } Code code = Code.get(rc.get()); if (code != KeeperException.Code.OK) { throw KeeperException.create(code); }
207208209210211212213214215216217
out.write(data); } out.flush(); synchronized (complete) { if (!complete.get()) { complete.wait(30000); } } assertTrue(complete.get()); } }
236237238239240241242243244245246
new DoneListener(done)); admin.modifyTable(tableName, htd); while (!done.get()) { synchronized (done) { try { done.wait(100); } catch (InterruptedException e) { e.printStackTrace(); } } }