192193194195196197198199200201202
SocketProtocol spt = new SocketProtocol(); spt.setTimeout(10 * 1000); spt.setSelectorManager(sm); templateStack.push(spt); ControlServerProtocol csp = new ControlServerProtocol(); csp.setTimeout(1 * 1000); csp.setThreadPool(tp); csp.setClockPool(cp);
205206207208209210211212213214215
public void shutdown() { log.trace("SERVER SIDE SHUTDOWN"); } }); templateStack.push(csp); ControlServerProtocolWaiter waiter = new ControlServerProtocolWaiter(); SubjectCarryingServerProtocol scp = new SubjectCarryingServerProtocol();
223224225226227228229230231232233
test.setClockPool(cp); test.setSelectorManager(sm); waiter.push(test); templateStack.push(waiter); ProtocolFactory pf = new ProtocolFactory(); pf.setClockPool(cp); pf.setMaxAge(Long.MAX_VALUE); pf.setMaxInactivity(1 * 60 * 60 * 1000);
184185186187188189190191192193194
197198199200201202203204205206207
public void shutdown() { log.trace("SERVER SIDE SHUTDOWN"); } }); templateStack.push(csp); ControlServerProtocolWaiter waiter = new ControlServerProtocolWaiter(); GSSAPIServerProtocol gsp = new GSSAPIServerProtocol(); gsp.setThreadPool(tp);
220221222223224225226227228229230
test.setClockPool(cp); test.setSelectorManager(sm); waiter.push(test); templateStack.push(waiter); templateStack.push(new TestCountingProtocol(completed)); ProtocolFactory pf = new ProtocolFactory(); pf.setClockPool(cp);
222223224225226227228229230231232
waiter.push(test); templateStack.push(waiter); templateStack.push(new TestCountingProtocol(completed)); ProtocolFactory pf = new ProtocolFactory(); pf.setClockPool(cp); pf.setMaxAge(Long.MAX_VALUE); pf.setMaxInactivity(1 * 60 * 60 * 1000);