1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
2 | <!--NewPage--> |
---|
3 | <HTML> |
---|
4 | <HEAD> |
---|
5 | <!-- Generated by javadoc (build 1.6.0_07) on Tue Sep 01 20:56:54 UTC 2009 --> |
---|
6 | <TITLE> |
---|
7 | Server (Hadoop 0.20.1 API) |
---|
8 | </TITLE> |
---|
9 | |
---|
10 | <META NAME="date" CONTENT="2009-09-01"> |
---|
11 | |
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
13 | |
---|
14 | <SCRIPT type="text/javascript"> |
---|
15 | function windowTitle() |
---|
16 | { |
---|
17 | if (location.href.indexOf('is-external=true') == -1) { |
---|
18 | parent.document.title="Server (Hadoop 0.20.1 API)"; |
---|
19 | } |
---|
20 | } |
---|
21 | </SCRIPT> |
---|
22 | <NOSCRIPT> |
---|
23 | </NOSCRIPT> |
---|
24 | |
---|
25 | </HEAD> |
---|
26 | |
---|
27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
28 | <HR> |
---|
29 | |
---|
30 | |
---|
31 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
32 | <A NAME="navbar_top"><!-- --></A> |
---|
33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
35 | <TR> |
---|
36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
39 | <TR ALIGN="center" VALIGN="top"> |
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Server.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
48 | </TR> |
---|
49 | </TABLE> |
---|
50 | </TD> |
---|
51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
52 | </EM> |
---|
53 | </TD> |
---|
54 | </TR> |
---|
55 | |
---|
56 | <TR> |
---|
57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
58 | <A HREF="../../../../org/apache/hadoop/ipc/RPC.VersionMismatch.html" title="class in org.apache.hadoop.ipc"><B>PREV CLASS</B></A> |
---|
59 | <A HREF="../../../../org/apache/hadoop/ipc/VersionedProtocol.html" title="interface in org.apache.hadoop.ipc"><B>NEXT CLASS</B></A></FONT></TD> |
---|
60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
61 | <A HREF="../../../../index.html?org/apache/hadoop/ipc/Server.html" target="_top"><B>FRAMES</B></A> |
---|
62 | <A HREF="Server.html" target="_top"><B>NO FRAMES</B></A> |
---|
63 | <SCRIPT type="text/javascript"> |
---|
64 | <!-- |
---|
65 | if(window==top) { |
---|
66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
67 | } |
---|
68 | //--> |
---|
69 | </SCRIPT> |
---|
70 | <NOSCRIPT> |
---|
71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
72 | </NOSCRIPT> |
---|
73 | |
---|
74 | |
---|
75 | </FONT></TD> |
---|
76 | </TR> |
---|
77 | <TR> |
---|
78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
79 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
81 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
82 | </TR> |
---|
83 | </TABLE> |
---|
84 | <A NAME="skip-navbar_top"></A> |
---|
85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
86 | |
---|
87 | <HR> |
---|
88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
89 | <H2> |
---|
90 | <FONT SIZE="-1"> |
---|
91 | org.apache.hadoop.ipc</FONT> |
---|
92 | <BR> |
---|
93 | Class Server</H2> |
---|
94 | <PRE> |
---|
95 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.ipc.Server</B> |
---|
97 | </PRE> |
---|
98 | <DL> |
---|
99 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/hadoop/ipc/RPC.Server.html" title="class in org.apache.hadoop.ipc">RPC.Server</A></DD> |
---|
100 | </DL> |
---|
101 | <HR> |
---|
102 | <DL> |
---|
103 | <DT><PRE>public abstract class <B>Server</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
---|
104 | </PRE> |
---|
105 | |
---|
106 | <P> |
---|
107 | An abstract IPC service. IPC calls take a single <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io"><CODE>Writable</CODE></A> as a |
---|
108 | parameter, and return a <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io"><CODE>Writable</CODE></A> as their value. A service runs on |
---|
109 | a port and is defined by a parameter class and a value class. |
---|
110 | <P> |
---|
111 | |
---|
112 | <P> |
---|
113 | <DL> |
---|
114 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/hadoop/ipc/Client.html" title="class in org.apache.hadoop.ipc"><CODE>Client</CODE></A></DL> |
---|
115 | <HR> |
---|
116 | |
---|
117 | <P> |
---|
118 | <!-- =========== FIELD SUMMARY =========== --> |
---|
119 | |
---|
120 | <A NAME="field_summary"><!-- --></A> |
---|
121 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
122 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
123 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
124 | <B>Field Summary</B></FONT></TH> |
---|
125 | </TR> |
---|
126 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
127 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
128 | <CODE>static byte</CODE></FONT></TD> |
---|
129 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#CURRENT_VERSION">CURRENT_VERSION</A></B></CODE> |
---|
130 | |
---|
131 | <BR> |
---|
132 | </TD> |
---|
133 | </TR> |
---|
134 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
135 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
136 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</A></CODE></FONT></TD> |
---|
137 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#HEADER">HEADER</A></B></CODE> |
---|
138 | |
---|
139 | <BR> |
---|
140 | The first four bytes of Hadoop RPC connections</TD> |
---|
141 | </TR> |
---|
142 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
144 | <CODE>static org.apache.commons.logging.Log</CODE></FONT></TD> |
---|
145 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#LOG">LOG</A></B></CODE> |
---|
146 | |
---|
147 | <BR> |
---|
148 | </TD> |
---|
149 | </TR> |
---|
150 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
151 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
152 | <CODE>protected <A HREF="../../../../org/apache/hadoop/ipc/metrics/RpcMetrics.html" title="class in org.apache.hadoop.ipc.metrics">RpcMetrics</A></CODE></FONT></TD> |
---|
153 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#rpcMetrics">rpcMetrics</A></B></CODE> |
---|
154 | |
---|
155 | <BR> |
---|
156 | </TD> |
---|
157 | </TR> |
---|
158 | </TABLE> |
---|
159 | |
---|
160 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
161 | |
---|
162 | <A NAME="constructor_summary"><!-- --></A> |
---|
163 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
164 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
165 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
166 | <B>Constructor Summary</B></FONT></TH> |
---|
167 | </TR> |
---|
168 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
169 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
170 | <CODE>protected </CODE></FONT></TD> |
---|
171 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#Server(java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration)">Server</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
172 | int port, |
---|
173 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>> paramClass, |
---|
174 | int handlerCount, |
---|
175 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf)</CODE> |
---|
176 | |
---|
177 | <BR> |
---|
178 | </TD> |
---|
179 | </TR> |
---|
180 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
181 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
182 | <CODE>protected </CODE></FONT></TD> |
---|
183 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#Server(java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String)">Server</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
184 | int port, |
---|
185 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>> paramClass, |
---|
186 | int handlerCount, |
---|
187 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
188 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> serverName)</CODE> |
---|
189 | |
---|
190 | <BR> |
---|
191 | Constructs a server listening on the named port and address.</TD> |
---|
192 | </TR> |
---|
193 | </TABLE> |
---|
194 | |
---|
195 | <!-- ========== METHOD SUMMARY =========== --> |
---|
196 | |
---|
197 | <A NAME="method_summary"><!-- --></A> |
---|
198 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
199 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
200 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
201 | <B>Method Summary</B></FONT></TH> |
---|
202 | </TR> |
---|
203 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
205 | <CODE> void</CODE></FONT></TD> |
---|
206 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#authorize(javax.security.auth.Subject, org.apache.hadoop.ipc.ConnectionHeader)">authorize</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/security/auth/Subject.html?is-external=true" title="class or interface in javax.security.auth">Subject</A> user, |
---|
207 | org.apache.hadoop.ipc.ConnectionHeader connection)</CODE> |
---|
208 | |
---|
209 | <BR> |
---|
210 | Authorize the incoming client connection.</TD> |
---|
211 | </TR> |
---|
212 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
213 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
214 | <CODE>static void</CODE></FONT></TD> |
---|
215 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#bind(java.net.ServerSocket, java.net.InetSocketAddress, int)">bind</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/ServerSocket.html?is-external=true" title="class or interface in java.net">ServerSocket</A> socket, |
---|
216 | <A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A> address, |
---|
217 | int backlog)</CODE> |
---|
218 | |
---|
219 | <BR> |
---|
220 | A convenience method to bind to a given address and report |
---|
221 | better exceptions if the address is not a valid host.</TD> |
---|
222 | </TR> |
---|
223 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
224 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
225 | <CODE>abstract <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></FONT></TD> |
---|
226 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#call(java.lang.Class, org.apache.hadoop.io.Writable, long)">call</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> protocol, |
---|
227 | <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> param, |
---|
228 | long receiveTime)</CODE> |
---|
229 | |
---|
230 | <BR> |
---|
231 | Called for each call.</TD> |
---|
232 | </TR> |
---|
233 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
234 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
235 | <CODE> <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A></CODE></FONT></TD> |
---|
236 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#call(org.apache.hadoop.io.Writable, long)">call</A></B>(<A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> param, |
---|
237 | long receiveTime)</CODE> |
---|
238 | |
---|
239 | <BR> |
---|
240 | <B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/hadoop/ipc/Server.html#call(java.lang.Class, org.apache.hadoop.io.Writable, long)"><CODE>call(Class, Writable, long)</CODE></A> instead</I></TD> |
---|
241 | </TR> |
---|
242 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
243 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
244 | <CODE>static <A HREF="../../../../org/apache/hadoop/ipc/Server.html" title="class in org.apache.hadoop.ipc">Server</A></CODE></FONT></TD> |
---|
245 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#get()">get</A></B>()</CODE> |
---|
246 | |
---|
247 | <BR> |
---|
248 | Returns the server instance called under or null.</TD> |
---|
249 | </TR> |
---|
250 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
251 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
252 | <CODE> int</CODE></FONT></TD> |
---|
253 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#getCallQueueLen()">getCallQueueLen</A></B>()</CODE> |
---|
254 | |
---|
255 | <BR> |
---|
256 | The number of rpc calls in the queue.</TD> |
---|
257 | </TR> |
---|
258 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
259 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
260 | <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A></CODE></FONT></TD> |
---|
261 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#getListenerAddress()">getListenerAddress</A></B>()</CODE> |
---|
262 | |
---|
263 | <BR> |
---|
264 | Return the socket (ip+port) on which the RPC server is listening to.</TD> |
---|
265 | </TR> |
---|
266 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
267 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
268 | <CODE> int</CODE></FONT></TD> |
---|
269 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#getNumOpenConnections()">getNumOpenConnections</A></B>()</CODE> |
---|
270 | |
---|
271 | <BR> |
---|
272 | The number of open RPC conections</TD> |
---|
273 | </TR> |
---|
274 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
275 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
276 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
---|
277 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#getRemoteAddress()">getRemoteAddress</A></B>()</CODE> |
---|
278 | |
---|
279 | <BR> |
---|
280 | Returns remote address as a string when invoked inside an RPC.</TD> |
---|
281 | </TR> |
---|
282 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
283 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
284 | <CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</A></CODE></FONT></TD> |
---|
285 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#getRemoteIp()">getRemoteIp</A></B>()</CODE> |
---|
286 | |
---|
287 | <BR> |
---|
288 | Returns the remote side ip address when invoked inside an RPC |
---|
289 | Returns null incase of an error.</TD> |
---|
290 | </TR> |
---|
291 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
292 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
293 | <CODE> void</CODE></FONT></TD> |
---|
294 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#join()">join</A></B>()</CODE> |
---|
295 | |
---|
296 | <BR> |
---|
297 | Wait for the server to be stopped.</TD> |
---|
298 | </TR> |
---|
299 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
300 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
301 | <CODE> void</CODE></FONT></TD> |
---|
302 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#setSocketSendBufSize(int)">setSocketSendBufSize</A></B>(int size)</CODE> |
---|
303 | |
---|
304 | <BR> |
---|
305 | Sets the socket buffer size used for responding to RPCs</TD> |
---|
306 | </TR> |
---|
307 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
308 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
309 | <CODE> void</CODE></FONT></TD> |
---|
310 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#start()">start</A></B>()</CODE> |
---|
311 | |
---|
312 | <BR> |
---|
313 | Starts the service.</TD> |
---|
314 | </TR> |
---|
315 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
316 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
317 | <CODE> void</CODE></FONT></TD> |
---|
318 | <TD><CODE><B><A HREF="../../../../org/apache/hadoop/ipc/Server.html#stop()">stop</A></B>()</CODE> |
---|
319 | |
---|
320 | <BR> |
---|
321 | Stops the service.</TD> |
---|
322 | </TR> |
---|
323 | </TABLE> |
---|
324 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
325 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
326 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
327 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
328 | </TR> |
---|
329 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
330 | <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
331 | </TR> |
---|
332 | </TABLE> |
---|
333 | |
---|
334 | <P> |
---|
335 | |
---|
336 | <!-- ============ FIELD DETAIL =========== --> |
---|
337 | |
---|
338 | <A NAME="field_detail"><!-- --></A> |
---|
339 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
340 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
341 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
342 | <B>Field Detail</B></FONT></TH> |
---|
343 | </TR> |
---|
344 | </TABLE> |
---|
345 | |
---|
346 | <A NAME="HEADER"><!-- --></A><H3> |
---|
347 | HEADER</H3> |
---|
348 | <PRE> |
---|
349 | public static final <A HREF="http://java.sun.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</A> <B>HEADER</B></PRE> |
---|
350 | <DL> |
---|
351 | <DD>The first four bytes of Hadoop RPC connections |
---|
352 | <P> |
---|
353 | <DL> |
---|
354 | </DL> |
---|
355 | </DL> |
---|
356 | <HR> |
---|
357 | |
---|
358 | <A NAME="CURRENT_VERSION"><!-- --></A><H3> |
---|
359 | CURRENT_VERSION</H3> |
---|
360 | <PRE> |
---|
361 | public static final byte <B>CURRENT_VERSION</B></PRE> |
---|
362 | <DL> |
---|
363 | <DL> |
---|
364 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.hadoop.ipc.Server.CURRENT_VERSION">Constant Field Values</A></DL> |
---|
365 | </DL> |
---|
366 | <HR> |
---|
367 | |
---|
368 | <A NAME="LOG"><!-- --></A><H3> |
---|
369 | LOG</H3> |
---|
370 | <PRE> |
---|
371 | public static final org.apache.commons.logging.Log <B>LOG</B></PRE> |
---|
372 | <DL> |
---|
373 | <DL> |
---|
374 | </DL> |
---|
375 | </DL> |
---|
376 | <HR> |
---|
377 | |
---|
378 | <A NAME="rpcMetrics"><!-- --></A><H3> |
---|
379 | rpcMetrics</H3> |
---|
380 | <PRE> |
---|
381 | protected <A HREF="../../../../org/apache/hadoop/ipc/metrics/RpcMetrics.html" title="class in org.apache.hadoop.ipc.metrics">RpcMetrics</A> <B>rpcMetrics</B></PRE> |
---|
382 | <DL> |
---|
383 | <DL> |
---|
384 | </DL> |
---|
385 | </DL> |
---|
386 | |
---|
387 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
388 | |
---|
389 | <A NAME="constructor_detail"><!-- --></A> |
---|
390 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
391 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
392 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
393 | <B>Constructor Detail</B></FONT></TH> |
---|
394 | </TR> |
---|
395 | </TABLE> |
---|
396 | |
---|
397 | <A NAME="Server(java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration)"><!-- --></A><H3> |
---|
398 | Server</H3> |
---|
399 | <PRE> |
---|
400 | protected <B>Server</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
401 | int port, |
---|
402 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>> paramClass, |
---|
403 | int handlerCount, |
---|
404 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf) |
---|
405 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
406 | <DL> |
---|
407 | <DL> |
---|
408 | |
---|
409 | <DT><B>Throws:</B> |
---|
410 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
411 | </DL> |
---|
412 | <HR> |
---|
413 | |
---|
414 | <A NAME="Server(java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String)"><!-- --></A><H3> |
---|
415 | Server</H3> |
---|
416 | <PRE> |
---|
417 | protected <B>Server</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> bindAddress, |
---|
418 | int port, |
---|
419 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A>> paramClass, |
---|
420 | int handlerCount, |
---|
421 | <A HREF="../../../../org/apache/hadoop/conf/Configuration.html" title="class in org.apache.hadoop.conf">Configuration</A> conf, |
---|
422 | <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> serverName) |
---|
423 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
424 | <DL> |
---|
425 | <DD>Constructs a server listening on the named port and address. Parameters passed must |
---|
426 | be of the named class. The <code>handlerCount</handlerCount> determines |
---|
427 | the number of handler threads that will be used to process calls. |
---|
428 | <P> |
---|
429 | <DL> |
---|
430 | |
---|
431 | <DT><B>Throws:</B> |
---|
432 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
433 | </DL> |
---|
434 | |
---|
435 | <!-- ============ METHOD DETAIL ========== --> |
---|
436 | |
---|
437 | <A NAME="method_detail"><!-- --></A> |
---|
438 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
439 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
440 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
441 | <B>Method Detail</B></FONT></TH> |
---|
442 | </TR> |
---|
443 | </TABLE> |
---|
444 | |
---|
445 | <A NAME="get()"><!-- --></A><H3> |
---|
446 | get</H3> |
---|
447 | <PRE> |
---|
448 | public static <A HREF="../../../../org/apache/hadoop/ipc/Server.html" title="class in org.apache.hadoop.ipc">Server</A> <B>get</B>()</PRE> |
---|
449 | <DL> |
---|
450 | <DD>Returns the server instance called under or null. May be called under |
---|
451 | <A HREF="../../../../org/apache/hadoop/ipc/Server.html#call(org.apache.hadoop.io.Writable, long)"><CODE>call(Writable, long)</CODE></A> implementations, and under <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io"><CODE>Writable</CODE></A> |
---|
452 | methods of paramters and return values. Permits applications to access |
---|
453 | the server context. |
---|
454 | <P> |
---|
455 | <DD><DL> |
---|
456 | </DL> |
---|
457 | </DD> |
---|
458 | </DL> |
---|
459 | <HR> |
---|
460 | |
---|
461 | <A NAME="getRemoteIp()"><!-- --></A><H3> |
---|
462 | getRemoteIp</H3> |
---|
463 | <PRE> |
---|
464 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</A> <B>getRemoteIp</B>()</PRE> |
---|
465 | <DL> |
---|
466 | <DD>Returns the remote side ip address when invoked inside an RPC |
---|
467 | Returns null incase of an error. |
---|
468 | <P> |
---|
469 | <DD><DL> |
---|
470 | </DL> |
---|
471 | </DD> |
---|
472 | </DL> |
---|
473 | <HR> |
---|
474 | |
---|
475 | <A NAME="getRemoteAddress()"><!-- --></A><H3> |
---|
476 | getRemoteAddress</H3> |
---|
477 | <PRE> |
---|
478 | public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getRemoteAddress</B>()</PRE> |
---|
479 | <DL> |
---|
480 | <DD>Returns remote address as a string when invoked inside an RPC. |
---|
481 | Returns null in case of an error. |
---|
482 | <P> |
---|
483 | <DD><DL> |
---|
484 | </DL> |
---|
485 | </DD> |
---|
486 | </DL> |
---|
487 | <HR> |
---|
488 | |
---|
489 | <A NAME="bind(java.net.ServerSocket, java.net.InetSocketAddress, int)"><!-- --></A><H3> |
---|
490 | bind</H3> |
---|
491 | <PRE> |
---|
492 | public static void <B>bind</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/net/ServerSocket.html?is-external=true" title="class or interface in java.net">ServerSocket</A> socket, |
---|
493 | <A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A> address, |
---|
494 | int backlog) |
---|
495 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
496 | <DL> |
---|
497 | <DD>A convenience method to bind to a given address and report |
---|
498 | better exceptions if the address is not a valid host. |
---|
499 | <P> |
---|
500 | <DD><DL> |
---|
501 | <DT><B>Parameters:</B><DD><CODE>socket</CODE> - the socket to bind<DD><CODE>address</CODE> - the address to bind to<DD><CODE>backlog</CODE> - the number of connections allowed in the queue |
---|
502 | <DT><B>Throws:</B> |
---|
503 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/BindException.html?is-external=true" title="class or interface in java.net">BindException</A></CODE> - if the address can't be bound |
---|
504 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</A></CODE> - if the address isn't a valid host name |
---|
505 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - other random errors from bind</DL> |
---|
506 | </DD> |
---|
507 | </DL> |
---|
508 | <HR> |
---|
509 | |
---|
510 | <A NAME="setSocketSendBufSize(int)"><!-- --></A><H3> |
---|
511 | setSocketSendBufSize</H3> |
---|
512 | <PRE> |
---|
513 | public void <B>setSocketSendBufSize</B>(int size)</PRE> |
---|
514 | <DL> |
---|
515 | <DD>Sets the socket buffer size used for responding to RPCs |
---|
516 | <P> |
---|
517 | <DD><DL> |
---|
518 | </DL> |
---|
519 | </DD> |
---|
520 | </DL> |
---|
521 | <HR> |
---|
522 | |
---|
523 | <A NAME="start()"><!-- --></A><H3> |
---|
524 | start</H3> |
---|
525 | <PRE> |
---|
526 | public void <B>start</B>() |
---|
527 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
528 | <DL> |
---|
529 | <DD>Starts the service. Must be called before any calls will be handled. |
---|
530 | <P> |
---|
531 | <DD><DL> |
---|
532 | |
---|
533 | <DT><B>Throws:</B> |
---|
534 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
535 | </DD> |
---|
536 | </DL> |
---|
537 | <HR> |
---|
538 | |
---|
539 | <A NAME="stop()"><!-- --></A><H3> |
---|
540 | stop</H3> |
---|
541 | <PRE> |
---|
542 | public void <B>stop</B>()</PRE> |
---|
543 | <DL> |
---|
544 | <DD>Stops the service. No new calls will be handled after this is called. |
---|
545 | <P> |
---|
546 | <DD><DL> |
---|
547 | </DL> |
---|
548 | </DD> |
---|
549 | </DL> |
---|
550 | <HR> |
---|
551 | |
---|
552 | <A NAME="join()"><!-- --></A><H3> |
---|
553 | join</H3> |
---|
554 | <PRE> |
---|
555 | public void <B>join</B>() |
---|
556 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE> |
---|
557 | <DL> |
---|
558 | <DD>Wait for the server to be stopped. |
---|
559 | Does not wait for all subthreads to finish. |
---|
560 | See <A HREF="../../../../org/apache/hadoop/ipc/Server.html#stop()"><CODE>stop()</CODE></A>. |
---|
561 | <P> |
---|
562 | <DD><DL> |
---|
563 | |
---|
564 | <DT><B>Throws:</B> |
---|
565 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL> |
---|
566 | </DD> |
---|
567 | </DL> |
---|
568 | <HR> |
---|
569 | |
---|
570 | <A NAME="getListenerAddress()"><!-- --></A><H3> |
---|
571 | getListenerAddress</H3> |
---|
572 | <PRE> |
---|
573 | public <A HREF="http://java.sun.com/javase/6/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</A> <B>getListenerAddress</B>()</PRE> |
---|
574 | <DL> |
---|
575 | <DD>Return the socket (ip+port) on which the RPC server is listening to. |
---|
576 | <P> |
---|
577 | <DD><DL> |
---|
578 | |
---|
579 | <DT><B>Returns:</B><DD>the socket (ip+port) on which the RPC server is listening to.</DL> |
---|
580 | </DD> |
---|
581 | </DL> |
---|
582 | <HR> |
---|
583 | |
---|
584 | <A NAME="call(org.apache.hadoop.io.Writable, long)"><!-- --></A><H3> |
---|
585 | call</H3> |
---|
586 | <PRE> |
---|
587 | <FONT SIZE="-1"><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A> |
---|
588 | </FONT>public <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> <B>call</B>(<A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> param, |
---|
589 | long receiveTime) |
---|
590 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
591 | <DL> |
---|
592 | <DD><B>Deprecated.</B> <I>Use <A HREF="../../../../org/apache/hadoop/ipc/Server.html#call(java.lang.Class, org.apache.hadoop.io.Writable, long)"><CODE>call(Class, Writable, long)</CODE></A> instead</I> |
---|
593 | <P> |
---|
594 | <DD>Called for each call. |
---|
595 | <P> |
---|
596 | <DD><DL> |
---|
597 | |
---|
598 | <DT><B>Throws:</B> |
---|
599 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
600 | </DD> |
---|
601 | </DL> |
---|
602 | <HR> |
---|
603 | |
---|
604 | <A NAME="call(java.lang.Class, org.apache.hadoop.io.Writable, long)"><!-- --></A><H3> |
---|
605 | call</H3> |
---|
606 | <PRE> |
---|
607 | public abstract <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> <B>call</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> protocol, |
---|
608 | <A HREF="../../../../org/apache/hadoop/io/Writable.html" title="interface in org.apache.hadoop.io">Writable</A> param, |
---|
609 | long receiveTime) |
---|
610 | throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> |
---|
611 | <DL> |
---|
612 | <DD>Called for each call. |
---|
613 | <P> |
---|
614 | <DD><DL> |
---|
615 | |
---|
616 | <DT><B>Throws:</B> |
---|
617 | <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> |
---|
618 | </DD> |
---|
619 | </DL> |
---|
620 | <HR> |
---|
621 | |
---|
622 | <A NAME="authorize(javax.security.auth.Subject, org.apache.hadoop.ipc.ConnectionHeader)"><!-- --></A><H3> |
---|
623 | authorize</H3> |
---|
624 | <PRE> |
---|
625 | public void <B>authorize</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/security/auth/Subject.html?is-external=true" title="class or interface in javax.security.auth">Subject</A> user, |
---|
626 | org.apache.hadoop.ipc.ConnectionHeader connection) |
---|
627 | throws <A HREF="../../../../org/apache/hadoop/security/authorize/AuthorizationException.html" title="class in org.apache.hadoop.security.authorize">AuthorizationException</A></PRE> |
---|
628 | <DL> |
---|
629 | <DD>Authorize the incoming client connection. |
---|
630 | <P> |
---|
631 | <DD><DL> |
---|
632 | <DT><B>Parameters:</B><DD><CODE>user</CODE> - client user<DD><CODE>connection</CODE> - incoming connection |
---|
633 | <DT><B>Throws:</B> |
---|
634 | <DD><CODE><A HREF="../../../../org/apache/hadoop/security/authorize/AuthorizationException.html" title="class in org.apache.hadoop.security.authorize">AuthorizationException</A></CODE> - when the client isn't authorized to talk the protocol</DL> |
---|
635 | </DD> |
---|
636 | </DL> |
---|
637 | <HR> |
---|
638 | |
---|
639 | <A NAME="getNumOpenConnections()"><!-- --></A><H3> |
---|
640 | getNumOpenConnections</H3> |
---|
641 | <PRE> |
---|
642 | public int <B>getNumOpenConnections</B>()</PRE> |
---|
643 | <DL> |
---|
644 | <DD>The number of open RPC conections |
---|
645 | <P> |
---|
646 | <DD><DL> |
---|
647 | |
---|
648 | <DT><B>Returns:</B><DD>the number of open rpc connections</DL> |
---|
649 | </DD> |
---|
650 | </DL> |
---|
651 | <HR> |
---|
652 | |
---|
653 | <A NAME="getCallQueueLen()"><!-- --></A><H3> |
---|
654 | getCallQueueLen</H3> |
---|
655 | <PRE> |
---|
656 | public int <B>getCallQueueLen</B>()</PRE> |
---|
657 | <DL> |
---|
658 | <DD>The number of rpc calls in the queue. |
---|
659 | <P> |
---|
660 | <DD><DL> |
---|
661 | |
---|
662 | <DT><B>Returns:</B><DD>The number of rpc calls in the queue.</DL> |
---|
663 | </DD> |
---|
664 | </DL> |
---|
665 | <!-- ========= END OF CLASS DATA ========= --> |
---|
666 | <HR> |
---|
667 | |
---|
668 | |
---|
669 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
670 | <A NAME="navbar_bottom"><!-- --></A> |
---|
671 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
672 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
673 | <TR> |
---|
674 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
675 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
676 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
677 | <TR ALIGN="center" VALIGN="top"> |
---|
678 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
679 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
680 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
681 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Server.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
682 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
683 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
684 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
685 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
686 | </TR> |
---|
687 | </TABLE> |
---|
688 | </TD> |
---|
689 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
690 | </EM> |
---|
691 | </TD> |
---|
692 | </TR> |
---|
693 | |
---|
694 | <TR> |
---|
695 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
696 | <A HREF="../../../../org/apache/hadoop/ipc/RPC.VersionMismatch.html" title="class in org.apache.hadoop.ipc"><B>PREV CLASS</B></A> |
---|
697 | <A HREF="../../../../org/apache/hadoop/ipc/VersionedProtocol.html" title="interface in org.apache.hadoop.ipc"><B>NEXT CLASS</B></A></FONT></TD> |
---|
698 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
699 | <A HREF="../../../../index.html?org/apache/hadoop/ipc/Server.html" target="_top"><B>FRAMES</B></A> |
---|
700 | <A HREF="Server.html" target="_top"><B>NO FRAMES</B></A> |
---|
701 | <SCRIPT type="text/javascript"> |
---|
702 | <!-- |
---|
703 | if(window==top) { |
---|
704 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
705 | } |
---|
706 | //--> |
---|
707 | </SCRIPT> |
---|
708 | <NOSCRIPT> |
---|
709 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
710 | </NOSCRIPT> |
---|
711 | |
---|
712 | |
---|
713 | </FONT></TD> |
---|
714 | </TR> |
---|
715 | <TR> |
---|
716 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
717 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
718 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
719 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
720 | </TR> |
---|
721 | </TABLE> |
---|
722 | <A NAME="skip-navbar_bottom"></A> |
---|
723 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
724 | |
---|
725 | <HR> |
---|
726 | Copyright © 2009 The Apache Software Foundation |
---|
727 | </BODY> |
---|
728 | </HTML> |
---|