@Override public void init() throws Exception { super.init(); }
@Override // GemStoneAddition public void init() throws Exception { super.init(); }
ProtocolStack createStack(IpAddress addr) throws Exception { CollectingProtocol top = new CollectingProtocol(true, false); TestFD_SOCK tfds = new TestFD_SOCK(); TestFD tfd = new TestFD(); TestVERIFY_SUSPECT tvs = new TestVERIFY_SUSPECT(); MessagingProtocol bottom = new MessagingProtocol(); // connect the protocols into a stack and start them top.setDownProtocol(tvs); tvs.setUpProtocol(top); tvs.setDownProtocol(tfds); tfds.setUpProtocol(tvs); tfds.setDownProtocol(tfd); tfd.setUpProtocol(tfds); tfd.setDownProtocol(bottom); // tfdr.setUpProtocol(tfd); tfdr.setDownProtocol(bottom); bottom.setUpProtocol(tfd); MyChannel channel = MyChannel.create(null, addr); ProtocolStack stack = ProtocolStack.createTestStack(channel, top); Vector protocols = stack.getProtocols(); for (int i=0; i<protocols.size(); i++) { Protocol p = (Protocol)protocols.get(i); p.init(); } channel.setProtocolStack(stack); return stack; }