1 | /** |
2 | * |
3 | */ |
4 | package net.spy.memcached; |
5 | |
6 | import java.io.IOException; |
7 | import java.net.SocketAddress; |
8 | import java.nio.ByteBuffer; |
9 | import java.nio.channels.SelectionKey; |
10 | import java.nio.channels.SocketChannel; |
11 | import java.util.Collection; |
12 | |
13 | import net.spy.memcached.ops.Operation; |
14 | |
15 | class MemcachedNodeROImpl implements MemcachedNode { |
16 | |
17 | private final MemcachedNode root; |
18 | |
19 | public MemcachedNodeROImpl(MemcachedNode n) { |
20 | super(); |
21 | root=n; |
22 | } |
23 | |
24 | @Override |
25 | public String toString() { |
26 | return root.toString(); |
27 | } |
28 | |
29 | public void addOp(Operation op) { |
30 | throw new UnsupportedOperationException(); |
31 | } |
32 | |
33 | public void connected() { |
34 | throw new UnsupportedOperationException(); |
35 | } |
36 | |
37 | public void copyInputQueue() { |
38 | throw new UnsupportedOperationException(); |
39 | } |
40 | |
41 | public void fillWriteBuffer(boolean optimizeGets) { |
42 | throw new UnsupportedOperationException(); |
43 | } |
44 | |
45 | public void fixupOps() { |
46 | throw new UnsupportedOperationException(); |
47 | } |
48 | |
49 | public int getBytesRemainingToWrite() { |
50 | throw new UnsupportedOperationException(); |
51 | } |
52 | |
53 | public SocketChannel getChannel() { |
54 | throw new UnsupportedOperationException(); |
55 | } |
56 | |
57 | public Operation getCurrentReadOp() { |
58 | throw new UnsupportedOperationException(); |
59 | } |
60 | |
61 | public Operation getCurrentWriteOp() { |
62 | throw new UnsupportedOperationException(); |
63 | } |
64 | |
65 | public ByteBuffer getRbuf() { |
66 | throw new UnsupportedOperationException(); |
67 | } |
68 | |
69 | public int getReconnectCount() { |
70 | throw new UnsupportedOperationException(); |
71 | } |
72 | |
73 | public int getSelectionOps() { |
74 | throw new UnsupportedOperationException(); |
75 | } |
76 | |
77 | public SelectionKey getSk() { |
78 | throw new UnsupportedOperationException(); |
79 | } |
80 | |
81 | public SocketAddress getSocketAddress() { |
82 | return root.getSocketAddress(); |
83 | } |
84 | |
85 | public ByteBuffer getWbuf() { |
86 | throw new UnsupportedOperationException(); |
87 | } |
88 | |
89 | public boolean hasReadOp() { |
90 | throw new UnsupportedOperationException(); |
91 | } |
92 | |
93 | public boolean hasWriteOp() { |
94 | throw new UnsupportedOperationException(); |
95 | } |
96 | |
97 | public boolean isActive() { |
98 | throw new UnsupportedOperationException(); |
99 | } |
100 | |
101 | public void reconnecting() { |
102 | throw new UnsupportedOperationException(); |
103 | } |
104 | |
105 | public void registerChannel(SocketChannel ch, SelectionKey selectionKey) { |
106 | throw new UnsupportedOperationException(); |
107 | } |
108 | |
109 | public Operation removeCurrentReadOp() { |
110 | throw new UnsupportedOperationException(); |
111 | } |
112 | |
113 | public Operation removeCurrentWriteOp() { |
114 | throw new UnsupportedOperationException(); |
115 | } |
116 | |
117 | public void setChannel(SocketChannel to) { |
118 | throw new UnsupportedOperationException(); |
119 | } |
120 | |
121 | public void setSk(SelectionKey to) { |
122 | throw new UnsupportedOperationException(); |
123 | } |
124 | |
125 | public void setupResend() { |
126 | throw new UnsupportedOperationException(); |
127 | } |
128 | |
129 | public void transitionWriteItem() { |
130 | throw new UnsupportedOperationException(); |
131 | } |
132 | |
133 | public int writeSome() throws IOException { |
134 | throw new UnsupportedOperationException(); |
135 | } |
136 | |
137 | public Collection<Operation> destroyInputQueue() { |
138 | throw new UnsupportedOperationException(); |
139 | } |
140 | |
141 | } |