KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > NetworkStackHarnessFactory


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol;
5
6 import com.tc.net.protocol.tcm.MessageChannelInternal;
7 import com.tc.net.protocol.tcm.ServerMessageChannelFactory;
8 import com.tc.net.protocol.transport.MessageTransport;
9 import com.tc.net.protocol.transport.MessageTransportFactory;
10 import com.tc.net.protocol.transport.MessageTransportListener;
11
12 public interface NetworkStackHarnessFactory {
13
14   /**
15    * Creates server-side stack harnesses.
16    *
17    * @param transportListeners An array of MessageTransportListeners that ought to be wired up to the transport (in
18    * addition to any that might be created by the stack harness)
19    */

20   NetworkStackHarness createServerHarness(ServerMessageChannelFactory channelFactory, MessageTransport transport,
21                                           MessageTransportListener[] transportListeners);
22
23   /**
24    * Creates client-side stack harnesses.
25    */

26   NetworkStackHarness clientClientHarness(MessageTransportFactory transportFactory, MessageChannelInternal channel,
27                                           MessageTransportListener[] transportListeners);
28
29 }
Popular Tags