KickJava   Java API By Example, From Geeks To Geeks.

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


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.bytes.TCByteBuffer;
7 import com.tc.exception.ImplementMe;
8 import com.tc.net.protocol.delivery.OnceAndOnlyOnceProtocolNetworkLayer;
9 import com.tc.net.protocol.transport.MessageTransport;
10
11 /**
12  *
13  */

14 public class MockOnceAndOnlyOnceProtocolNetworkLayer implements OnceAndOnlyOnceProtocolNetworkLayer {
15
16   public NetworkLayer sendLayer;
17   public NetworkLayer receiveLayer;
18
19   public void setSendLayer(NetworkLayer layer) {
20     this.sendLayer = layer;
21   }
22
23   public void setReceiveLayer(NetworkLayer layer) {
24         this.receiveLayer = layer;
25   }
26   
27   public void send(TCNetworkMessage message) {
28     throw new ImplementMe();
29   }
30
31   public void receive(TCByteBuffer[] msgData) {
32     throw new ImplementMe();
33   }
34
35   public boolean isConnected() {
36     throw new ImplementMe();
37   }
38
39   public NetworkStackID open() {
40     throw new ImplementMe();
41   }
42
43   public void close() {
44     throw new ImplementMe();
45   }
46
47   public void notifyTransportConnected(MessageTransport transport) {
48     throw new ImplementMe();
49   }
50
51   public void notifyTransportDisconnected(MessageTransport transport) {
52     throw new ImplementMe();
53   }
54
55   public void notifyTransportConnectAttempt(MessageTransport transport) {
56     throw new ImplementMe();
57   }
58
59   public void notifyTransportClosed(MessageTransport transport) {
60     throw new ImplementMe();
61   }
62
63 }
64
Popular Tags