01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol;
05:
06: import com.tc.net.protocol.tcm.MessageChannelInternal;
07: import com.tc.net.protocol.tcm.ServerMessageChannelFactory;
08: import com.tc.net.protocol.transport.MessageTransport;
09: 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(
21: ServerMessageChannelFactory channelFactory,
22: MessageTransport transport,
23: MessageTransportListener[] transportListeners);
24:
25: /**
26: * Creates client-side stack harnesses.
27: */
28: NetworkStackHarness createClientHarness(
29: MessageTransportFactory transportFactory,
30: MessageChannelInternal channel,
31: MessageTransportListener[] transportListeners);
32:
33: }
|