KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > core > TestTCConnection


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.core;
5
6 import com.tc.exception.ImplementMe;
7 import com.tc.net.TCSocketAddress;
8 import com.tc.net.core.event.TCConnectionEventListener;
9 import com.tc.net.protocol.TCNetworkMessage;
10 import com.tc.util.concurrent.NoExceptionLinkedQueue;
11
12 import java.net.Socket JavaDoc;
13
14 public class TestTCConnection implements TCConnection {
15
16   public final NoExceptionLinkedQueue addListenerCalls = new NoExceptionLinkedQueue();
17
18   public long getConnectTime() {
19     throw new ImplementMe();
20   }
21
22   public long getIdleTime() {
23     throw new ImplementMe();
24   }
25
26   public void addListener(TCConnectionEventListener listener) {
27     addListenerCalls.put(listener);
28   }
29
30   public void removeListener(TCConnectionEventListener listener) {
31     throw new ImplementMe();
32   }
33
34   public void asynchClose() {
35     throw new ImplementMe();
36   }
37
38   public boolean close(long timeout) {
39     throw new ImplementMe();
40   }
41
42   public void connect(TCSocketAddress addr, int timeout) {
43     throw new ImplementMe();
44   }
45
46   public boolean asynchConnect(TCSocketAddress addr) {
47     throw new ImplementMe();
48   }
49
50   public boolean isConnected() {
51     throw new ImplementMe();
52   }
53
54   public boolean isClosed() {
55     throw new ImplementMe();
56   }
57
58   public TCSocketAddress getLocalAddress() {
59     throw new ImplementMe();
60   }
61
62   public TCSocketAddress getRemoteAddress() {
63     throw new ImplementMe();
64   }
65
66   public void putMessage(TCNetworkMessage message) {
67     throw new ImplementMe();
68   }
69
70   public Socket JavaDoc detach() {
71     throw new ImplementMe();
72   }
73
74 }
75
Popular Tags