697698699700701702703704705706707
office2.stop(); dumpNodeIDView(office3); office3.stop(); //Start all nodes office1.start(); office2.start();
762763764765766767768769770771772
if (office3 != null) { try { office3.stop(); } catch (Exception ignore) { } }
872873874875876877878879880881882
968969970971972973974975976977978
10691070107110721073107410751076107710781079
11781179118011811182118311841185118611871188
12351236123712381239124012411242124312441245
bindings = office3.getAllBindings(); assertGotAll(3, bindings, queue1.getName()); office1.stop(); office2.stop(); office3.stop(); office1.start(); office2.start(); office3.start();
12661267126812691270127112721273127412751276
assertGotAll(2, bindings, queue1.getName()); bindings = office3.getAllBindings(); assertGotAll(3, bindings, queue1.getName()); office3.stop(); Thread.sleep(3000); bindings = office1.getAllBindings(); assertEquals(2, bindings.size());
13141315131613171318131913201321132213231324
15171518151915201521152215231524152515261527
{ office1.removeBinding("queue1", true); office1.removeBinding("queue2", true); office1.removeBinding("queue3", true); office1.removeBinding("queue4", true); office1.stop(); } } } public void testBindSameName() throws Throwable