A reactor is a light-weight thread dedicated to processing requests and responses (requests with a response value).
A reactor has an input queue of requests/responses not yet processed and a table of requests/responses to be sent to other reactors.
1314151617181920212223
*/ @GwtIncompatible public class Test1 extends CallTestBase { public void testI() throws Exception { new Plant(); final Reactor reactor = new IsolationReactor(); final BladeA bladeA = new BladeA(reactor); try { call(bladeA.throwAOp); } catch (final IOException se) { Plant.close();
11121314151617
public class BladeC { private final Reactor reactor; public BladeC() throws Exception { this.reactor = new IsolationReactor(); }
3334353637383940414243
long t0; public FirstStage(final DataProcessor _next, final long _count, final int _maxWindowSize) throws Exception { super(new IsolationReactor()); getReactor().setIdle(this); mainThread = Thread.currentThread(); next = _next; count = _count; maxWindowSize = _maxWindowSize;
89101112131415161718
* Test code. */ public class Test1 extends CallTestBase { public void testa() throws Exception { new Plant(); final IsolationReactor reactor = new IsolationReactor(); final Blade11 blade1 = new Blade11(reactor); final String result = call(blade1.hiSOp()); assertEquals("Hello world!", result); Plant.close(); }
1617181920212223242526
public void test1() throws Exception { Thread.sleep(100); System.err.println("\ntest 1"); new Plant(); try { Foot foot = new Foot(new IsolationReactor()); assertTrue(call(foot.dAOp())); } finally { Plant.close(); } }
2829303132333435363738
public void test2() throws Exception { Thread.sleep(100); System.err.println("\ntest 2"); new Plant(); try { Foot foot = new Foot(new IsolationReactor()); Via via = new Via(foot.dAOp()); assertTrue(call(via.dAOp())); } finally { Plant.close(); }
4142434445464748495051
public void test3() throws Exception { Thread.sleep(100); System.err.println("\ntest 3"); new Plant(); try { Foot foot = new Foot(new IsolationReactor()); Head head = new Head(foot.dAOp()); System.err.println("skipping this test"); //assertFalse(call(head.dAOp())); } finally { Plant.close();
5556575859606162636465
public void test4() throws Exception { Thread.sleep(100); System.err.println("\ntest 4"); new Plant(); try { Foot foot = new Foot(new IsolationReactor()); Via via = new Via(foot.dAOp()); Head head = new Head(via.dAOp()); System.err.println("skipping this test"); //assertFalse(call(head.dAOp())); } finally {
7071727374757677787980
public void test5() throws Exception { Thread.sleep(100); System.err.println("\ntest 5"); new Plant(); try { IsolationReactor reactor = new IsolationReactor(); Foot foot = new Foot(reactor); Via via = new Via(foot.dAOp()); Head head = new Head(via.dAOp(), reactor); assertTrue(call(head.dAOp())); } finally {
8586878889909192939495
public void test6() throws Exception { Thread.sleep(100); System.err.println("\ntest 6"); new Plant(); try { IsolationReactor reactor = new IsolationReactor(); Foot foot = new Foot(reactor); Head head = new Head(foot.dAOp(), reactor); assertTrue(call(head.dAOp())); } finally { Plant.close();