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.4.2_06) on Mon Jul 25 11:24:18 JST 2005 --> |
6 |
<TITLE> |
7 |
Node (estraier) |
8 |
</TITLE> |
9 |
|
10 |
<META NAME="keywords" CONTENT="estraier.Node interface"> |
11 |
|
12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> |
13 |
|
14 |
<SCRIPT type="text/javascript"> |
15 |
function windowTitle() |
16 |
{ |
17 |
parent.document.title="Node (estraier)"; |
18 |
} |
19 |
</SCRIPT> |
20 |
|
21 |
</HEAD> |
22 |
|
23 |
<BODY BGCOLOR="white" onload="windowTitle();"> |
24 |
|
25 |
|
26 |
<!-- ========= START OF TOP NAVBAR ======= --> |
27 |
<A NAME="navbar_top"><!-- --></A> |
28 |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
29 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
30 |
<TR> |
31 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
32 |
<A NAME="navbar_top_firstrow"><!-- --></A> |
33 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
34 |
<TR ALIGN="center" VALIGN="top"> |
35 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
36 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
37 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
39 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
40 |
</TR> |
41 |
</TABLE> |
42 |
</TD> |
43 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
44 |
</EM> |
45 |
</TD> |
46 |
</TR> |
47 |
|
48 |
<TR> |
49 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
50 |
<A HREF="../estraier/DocumentImpl.html" title="class in estraier"><B>PREV CLASS</B></A> |
51 |
<A HREF="../estraier/NodeImpl.html" title="class in estraier"><B>NEXT CLASS</B></A></FONT></TD> |
52 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
53 |
<A HREF="../index.html" target="_top"><B>FRAMES</B></A> |
54 |
<A HREF="Node.html" target="_top"><B>NO FRAMES</B></A> |
55 |
<SCRIPT type="text/javascript"> |
56 |
<!-- |
57 |
if(window==top) { |
58 |
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); |
59 |
} |
60 |
//--> |
61 |
</SCRIPT> |
62 |
<NOSCRIPT> |
63 |
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A> |
64 |
</NOSCRIPT> |
65 |
|
66 |
</FONT></TD> |
67 |
</TR> |
68 |
<TR> |
69 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
70 |
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
71 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
72 |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
73 |
</TR> |
74 |
</TABLE> |
75 |
<A NAME="skip-navbar_top"></A> |
76 |
<!-- ========= END OF TOP NAVBAR ========= --> |
77 |
|
78 |
<HR> |
79 |
<!-- ======== START OF CLASS DATA ======== --> |
80 |
<H2> |
81 |
<FONT SIZE="-1"> |
82 |
estraier</FONT> |
83 |
<BR> |
84 |
Interface Node</H2> |
85 |
<DL> |
86 |
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../estraier/NodeImpl.html" title="class in estraier">NodeImpl</A></DD> |
87 |
</DL> |
88 |
<HR> |
89 |
<DL> |
90 |
<DT>public interface <B>Node</B></DL> |
91 |
|
92 |
<P> |
93 |
Abstraction of connection to P2P node. |
94 |
<P> |
95 |
|
96 |
<P> |
97 |
<HR> |
98 |
|
99 |
<P> |
100 |
<!-- ======== NESTED CLASS SUMMARY ======== --> |
101 |
|
102 |
|
103 |
<!-- =========== FIELD SUMMARY =========== --> |
104 |
|
105 |
|
106 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
107 |
|
108 |
|
109 |
<!-- ========== METHOD SUMMARY =========== --> |
110 |
|
111 |
<A NAME="method_summary"><!-- --></A> |
112 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
113 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
114 |
<TD COLSPAN=2><FONT SIZE="+2"> |
115 |
<B>Method Summary</B></FONT></TD> |
116 |
</TR> |
117 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
118 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
119 |
<CODE> int</CODE></FONT></TD> |
120 |
<TD><CODE><B><A HREF="../estraier/Node.html#doc_num()">doc_num</A></B>()</CODE> |
121 |
|
122 |
<BR> |
123 |
Get the number of documents.</TD> |
124 |
</TR> |
125 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
126 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
127 |
<CODE> java.lang.String</CODE></FONT></TD> |
128 |
<TD><CODE><B><A HREF="../estraier/Node.html#get_doc_attr_by_uri(java.lang.String, java.lang.String)">get_doc_attr_by_uri</A></B>(java.lang.String uri, |
129 |
java.lang.String name)</CODE> |
130 |
|
131 |
<BR> |
132 |
Retrieve the value of an attribute of a document specified by URI</TD> |
133 |
</TR> |
134 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
135 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
136 |
<CODE> java.lang.String</CODE></FONT></TD> |
137 |
<TD><CODE><B><A HREF="../estraier/Node.html#get_doc_attr(int, java.lang.String)">get_doc_attr</A></B>(int id, |
138 |
java.lang.String name)</CODE> |
139 |
|
140 |
<BR> |
141 |
Retrieve the value of an attribute of a document.</TD> |
142 |
</TR> |
143 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
144 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
145 |
<CODE> <A HREF="../estraier/Document.html" title="interface in estraier">Document</A></CODE></FONT></TD> |
146 |
<TD><CODE><B><A HREF="../estraier/Node.html#get_doc_by_uri(java.lang.String)">get_doc_by_uri</A></B>(java.lang.String uri)</CODE> |
147 |
|
148 |
<BR> |
149 |
Retrieve a document specified by URI.</TD> |
150 |
</TR> |
151 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
152 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
153 |
<CODE> <A HREF="../estraier/Document.html" title="interface in estraier">Document</A></CODE></FONT></TD> |
154 |
<TD><CODE><B><A HREF="../estraier/Node.html#get_doc(int)">get_doc</A></B>(int id)</CODE> |
155 |
|
156 |
<BR> |
157 |
Retrieve a document.</TD> |
158 |
</TR> |
159 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
160 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
161 |
<CODE> java.lang.String</CODE></FONT></TD> |
162 |
<TD><CODE><B><A HREF="../estraier/Node.html#label()">label</A></B>()</CODE> |
163 |
|
164 |
<BR> |
165 |
Get the label.</TD> |
166 |
</TR> |
167 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
168 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
169 |
<CODE> java.lang.String</CODE></FONT></TD> |
170 |
<TD><CODE><B><A HREF="../estraier/Node.html#name()">name</A></B>()</CODE> |
171 |
|
172 |
<BR> |
173 |
Get the name.</TD> |
174 |
</TR> |
175 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
176 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
177 |
<CODE> boolean</CODE></FONT></TD> |
178 |
<TD><CODE><B><A HREF="../estraier/Node.html#out_doc_by_uri(java.lang.String)">out_doc_by_uri</A></B>(java.lang.String uri)</CODE> |
179 |
|
180 |
<BR> |
181 |
Remove a document specified by URI.</TD> |
182 |
</TR> |
183 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
184 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
185 |
<CODE> boolean</CODE></FONT></TD> |
186 |
<TD><CODE><B><A HREF="../estraier/Node.html#out_doc(int)">out_doc</A></B>(int id)</CODE> |
187 |
|
188 |
<BR> |
189 |
Remove a document.</TD> |
190 |
</TR> |
191 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
192 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
193 |
<CODE> boolean</CODE></FONT></TD> |
194 |
<TD><CODE><B><A HREF="../estraier/Node.html#put_doc(estraier.Document)">put_doc</A></B>(<A HREF="../estraier/Document.html" title="interface in estraier">Document</A> doc)</CODE> |
195 |
|
196 |
<BR> |
197 |
Add a document.</TD> |
198 |
</TR> |
199 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
200 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
201 |
<CODE> <A HREF="../estraier/NodeResult.html" title="interface in estraier">NodeResult</A></CODE></FONT></TD> |
202 |
<TD><CODE><B><A HREF="../estraier/Node.html#search(estraier.Condition, int)">search</A></B>(<A HREF="../estraier/Condition.html" title="interface in estraier">Condition</A> cond, |
203 |
int depth)</CODE> |
204 |
|
205 |
<BR> |
206 |
Search documents corresponding a condition.</TD> |
207 |
</TR> |
208 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
209 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
210 |
<CODE> void</CODE></FONT></TD> |
211 |
<TD><CODE><B><A HREF="../estraier/Node.html#set_auth(java.lang.String, java.lang.String)">set_auth</A></B>(java.lang.String name, |
212 |
java.lang.String password)</CODE> |
213 |
|
214 |
<BR> |
215 |
Set the authentication information.</TD> |
216 |
</TR> |
217 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
218 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
219 |
<CODE> boolean</CODE></FONT></TD> |
220 |
<TD><CODE><B><A HREF="../estraier/Node.html#set_link(java.lang.String, java.lang.String, int)">set_link</A></B>(java.lang.String url, |
221 |
java.lang.String label, |
222 |
int credit)</CODE> |
223 |
|
224 |
<BR> |
225 |
Manage a link.</TD> |
226 |
</TR> |
227 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
228 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
229 |
<CODE> void</CODE></FONT></TD> |
230 |
<TD><CODE><B><A HREF="../estraier/Node.html#set_proxy(java.lang.String, int)">set_proxy</A></B>(java.lang.String host, |
231 |
int port)</CODE> |
232 |
|
233 |
<BR> |
234 |
Set the proxy information.</TD> |
235 |
</TR> |
236 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
237 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
238 |
<CODE> void</CODE></FONT></TD> |
239 |
<TD><CODE><B><A HREF="../estraier/Node.html#set_timeout(int)">set_timeout</A></B>(int msec)</CODE> |
240 |
|
241 |
<BR> |
242 |
Set timeout.</TD> |
243 |
</TR> |
244 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
245 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
246 |
<CODE> void</CODE></FONT></TD> |
247 |
<TD><CODE><B><A HREF="../estraier/Node.html#set_url(java.lang.String)">set_url</A></B>(java.lang.String url)</CODE> |
248 |
|
249 |
<BR> |
250 |
Set the URL of a node server.</TD> |
251 |
</TR> |
252 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
253 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
254 |
<CODE> boolean</CODE></FONT></TD> |
255 |
<TD><CODE><B><A HREF="../estraier/Node.html#set_user(java.lang.String, int)">set_user</A></B>(java.lang.String name, |
256 |
int mode)</CODE> |
257 |
|
258 |
<BR> |
259 |
Manage a user account.</TD> |
260 |
</TR> |
261 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
262 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
263 |
<CODE> double</CODE></FONT></TD> |
264 |
<TD><CODE><B><A HREF="../estraier/Node.html#size()">size</A></B>()</CODE> |
265 |
|
266 |
<BR> |
267 |
Get the size of the datbase of a node.</TD> |
268 |
</TR> |
269 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
270 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
271 |
<CODE> int</CODE></FONT></TD> |
272 |
<TD><CODE><B><A HREF="../estraier/Node.html#status()">status</A></B>()</CODE> |
273 |
|
274 |
<BR> |
275 |
Get the status code of the last request.</TD> |
276 |
</TR> |
277 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
278 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
279 |
<CODE> int</CODE></FONT></TD> |
280 |
<TD><CODE><B><A HREF="../estraier/Node.html#uri_to_id(java.lang.String)">uri_to_id</A></B>(java.lang.String uri)</CODE> |
281 |
|
282 |
<BR> |
283 |
Get the ID of a document spacified by URI.</TD> |
284 |
</TR> |
285 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
286 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
287 |
<CODE> int</CODE></FONT></TD> |
288 |
<TD><CODE><B><A HREF="../estraier/Node.html#word_num()">word_num</A></B>()</CODE> |
289 |
|
290 |
<BR> |
291 |
Get the number of unique words.</TD> |
292 |
</TR> |
293 |
</TABLE> |
294 |
|
295 |
<P> |
296 |
|
297 |
<!-- ============ FIELD DETAIL =========== --> |
298 |
|
299 |
|
300 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
301 |
|
302 |
|
303 |
<!-- ============ METHOD DETAIL ========== --> |
304 |
|
305 |
<A NAME="method_detail"><!-- --></A> |
306 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
307 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
308 |
<TD COLSPAN=1><FONT SIZE="+2"> |
309 |
<B>Method Detail</B></FONT></TD> |
310 |
</TR> |
311 |
</TABLE> |
312 |
|
313 |
<A NAME="doc_num()"><!-- --></A><H3> |
314 |
doc_num</H3> |
315 |
<PRE> |
316 |
public int <B>doc_num</B>()</PRE> |
317 |
<DL> |
318 |
<DD>Get the number of documents. |
319 |
<P> |
320 |
<DD><DL> |
321 |
|
322 |
<DT><B>Returns:</B><DD>the number of documents. On error, -1 is returned.</DL> |
323 |
</DD> |
324 |
</DL> |
325 |
<HR> |
326 |
|
327 |
<A NAME="get_doc_attr_by_uri(java.lang.String, java.lang.String)"><!-- --></A><H3> |
328 |
get_doc_attr_by_uri</H3> |
329 |
<PRE> |
330 |
public java.lang.String <B>get_doc_attr_by_uri</B>(java.lang.String uri, |
331 |
java.lang.String name)</PRE> |
332 |
<DL> |
333 |
<DD>Retrieve the value of an attribute of a document specified by URI |
334 |
<P> |
335 |
<DD><DL> |
336 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document.<DD><CODE>name</CODE> - the name of an attribute. |
337 |
<DT><B>Returns:</B><DD>the value of the attribute or null if it does not exist.</DL> |
338 |
</DD> |
339 |
</DL> |
340 |
<HR> |
341 |
|
342 |
<A NAME="get_doc_attr(int, java.lang.String)"><!-- --></A><H3> |
343 |
get_doc_attr</H3> |
344 |
<PRE> |
345 |
public java.lang.String <B>get_doc_attr</B>(int id, |
346 |
java.lang.String name)</PRE> |
347 |
<DL> |
348 |
<DD>Retrieve the value of an attribute of a document. |
349 |
<P> |
350 |
<DD><DL> |
351 |
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID number of a registered document.<DD><CODE>name</CODE> - the name of an attribute. |
352 |
<DT><B>Returns:</B><DD>the value of the attribute or null if it does not exist.</DL> |
353 |
</DD> |
354 |
</DL> |
355 |
<HR> |
356 |
|
357 |
<A NAME="get_doc_by_uri(java.lang.String)"><!-- --></A><H3> |
358 |
get_doc_by_uri</H3> |
359 |
<PRE> |
360 |
public <A HREF="../estraier/Document.html" title="interface in estraier">Document</A> <B>get_doc_by_uri</B>(java.lang.String uri)</PRE> |
361 |
<DL> |
362 |
<DD>Retrieve a document specified by URI. |
363 |
<P> |
364 |
<DD><DL> |
365 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document. |
366 |
<DT><B>Returns:</B><DD>a document object. On error, null is returned.</DL> |
367 |
</DD> |
368 |
</DL> |
369 |
<HR> |
370 |
|
371 |
<A NAME="get_doc(int)"><!-- --></A><H3> |
372 |
get_doc</H3> |
373 |
<PRE> |
374 |
public <A HREF="../estraier/Document.html" title="interface in estraier">Document</A> <B>get_doc</B>(int id)</PRE> |
375 |
<DL> |
376 |
<DD>Retrieve a document. |
377 |
<P> |
378 |
<DD><DL> |
379 |
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID number of a registered document. |
380 |
<DT><B>Returns:</B><DD>a document object. On error, null is returned.</DL> |
381 |
</DD> |
382 |
</DL> |
383 |
<HR> |
384 |
|
385 |
<A NAME="label()"><!-- --></A><H3> |
386 |
label</H3> |
387 |
<PRE> |
388 |
public java.lang.String <B>label</B>()</PRE> |
389 |
<DL> |
390 |
<DD>Get the label. |
391 |
<P> |
392 |
<DD><DL> |
393 |
|
394 |
<DT><B>Returns:</B><DD>the label. On error, null is returned.</DL> |
395 |
</DD> |
396 |
</DL> |
397 |
<HR> |
398 |
|
399 |
<A NAME="name()"><!-- --></A><H3> |
400 |
name</H3> |
401 |
<PRE> |
402 |
public java.lang.String <B>name</B>()</PRE> |
403 |
<DL> |
404 |
<DD>Get the name. |
405 |
<P> |
406 |
<DD><DL> |
407 |
|
408 |
<DT><B>Returns:</B><DD>the name. On error, null is returned.</DL> |
409 |
</DD> |
410 |
</DL> |
411 |
<HR> |
412 |
|
413 |
<A NAME="out_doc_by_uri(java.lang.String)"><!-- --></A><H3> |
414 |
out_doc_by_uri</H3> |
415 |
<PRE> |
416 |
public boolean <B>out_doc_by_uri</B>(java.lang.String uri)</PRE> |
417 |
<DL> |
418 |
<DD>Remove a document specified by URI. |
419 |
<P> |
420 |
<DD><DL> |
421 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document. |
422 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
423 |
</DD> |
424 |
</DL> |
425 |
<HR> |
426 |
|
427 |
<A NAME="out_doc(int)"><!-- --></A><H3> |
428 |
out_doc</H3> |
429 |
<PRE> |
430 |
public boolean <B>out_doc</B>(int id)</PRE> |
431 |
<DL> |
432 |
<DD>Remove a document. |
433 |
<P> |
434 |
<DD><DL> |
435 |
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID number of a registered document. |
436 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
437 |
</DD> |
438 |
</DL> |
439 |
<HR> |
440 |
|
441 |
<A NAME="put_doc(estraier.Document)"><!-- --></A><H3> |
442 |
put_doc</H3> |
443 |
<PRE> |
444 |
public boolean <B>put_doc</B>(<A HREF="../estraier/Document.html" title="interface in estraier">Document</A> doc)</PRE> |
445 |
<DL> |
446 |
<DD>Add a document. |
447 |
<P> |
448 |
<DD><DL> |
449 |
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - a document object to register. |
450 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
451 |
</DD> |
452 |
</DL> |
453 |
<HR> |
454 |
|
455 |
<A NAME="search(estraier.Condition, int)"><!-- --></A><H3> |
456 |
search</H3> |
457 |
<PRE> |
458 |
public <A HREF="../estraier/NodeResult.html" title="interface in estraier">NodeResult</A> <B>search</B>(<A HREF="../estraier/Condition.html" title="interface in estraier">Condition</A> cond, |
459 |
int depth)</PRE> |
460 |
<DL> |
461 |
<DD>Search documents corresponding a condition. |
462 |
<P> |
463 |
<DD><DL> |
464 |
<DT><B>Parameters:</B><DD><CODE>cond</CODE> - a condition object.<DD><CODE>depth</CODE> - the depth of meta search. |
465 |
<DT><B>Returns:</B><DD>a node result object. On error, null is returned.</DL> |
466 |
</DD> |
467 |
</DL> |
468 |
<HR> |
469 |
|
470 |
<A NAME="set_auth(java.lang.String, java.lang.String)"><!-- --></A><H3> |
471 |
set_auth</H3> |
472 |
<PRE> |
473 |
public void <B>set_auth</B>(java.lang.String name, |
474 |
java.lang.String password)</PRE> |
475 |
<DL> |
476 |
<DD>Set the authentication information. |
477 |
<P> |
478 |
<DD><DL> |
479 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of authentication.<DD><CODE>password</CODE> - the password of the authentication.</DL> |
480 |
</DD> |
481 |
</DL> |
482 |
<HR> |
483 |
|
484 |
<A NAME="set_link(java.lang.String, java.lang.String, int)"><!-- --></A><H3> |
485 |
set_link</H3> |
486 |
<PRE> |
487 |
public boolean <B>set_link</B>(java.lang.String url, |
488 |
java.lang.String label, |
489 |
int credit)</PRE> |
490 |
<DL> |
491 |
<DD>Manage a link. |
492 |
<P> |
493 |
<DD><DL> |
494 |
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL of the target node of a link.<DD><CODE>label</CODE> - the label of the link.<DD><CODE>credit</CODE> - the credit of the link. If it is negative, the link is removed. |
495 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
496 |
</DD> |
497 |
</DL> |
498 |
<HR> |
499 |
|
500 |
<A NAME="set_proxy(java.lang.String, int)"><!-- --></A><H3> |
501 |
set_proxy</H3> |
502 |
<PRE> |
503 |
public void <B>set_proxy</B>(java.lang.String host, |
504 |
int port)</PRE> |
505 |
<DL> |
506 |
<DD>Set the proxy information. |
507 |
<P> |
508 |
<DD><DL> |
509 |
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name of a proxy server.<DD><CODE>port</CODE> - the port number of the proxy server.</DL> |
510 |
</DD> |
511 |
</DL> |
512 |
<HR> |
513 |
|
514 |
<A NAME="set_timeout(int)"><!-- --></A><H3> |
515 |
set_timeout</H3> |
516 |
<PRE> |
517 |
public void <B>set_timeout</B>(int msec)</PRE> |
518 |
<DL> |
519 |
<DD>Set timeout. |
520 |
<P> |
521 |
<DD><DL> |
522 |
<DT><B>Parameters:</B><DD><CODE>msec</CODE> - timeout in seconds.</DL> |
523 |
</DD> |
524 |
</DL> |
525 |
<HR> |
526 |
|
527 |
<A NAME="set_url(java.lang.String)"><!-- --></A><H3> |
528 |
set_url</H3> |
529 |
<PRE> |
530 |
public void <B>set_url</B>(java.lang.String url)</PRE> |
531 |
<DL> |
532 |
<DD>Set the URL of a node server. |
533 |
<P> |
534 |
<DD><DL> |
535 |
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL of a node server.</DL> |
536 |
</DD> |
537 |
</DL> |
538 |
<HR> |
539 |
|
540 |
<A NAME="set_user(java.lang.String, int)"><!-- --></A><H3> |
541 |
set_user</H3> |
542 |
<PRE> |
543 |
public boolean <B>set_user</B>(java.lang.String name, |
544 |
int mode)</PRE> |
545 |
<DL> |
546 |
<DD>Manage a user account. |
547 |
<P> |
548 |
<DD><DL> |
549 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of a user.<DD><CODE>mode</CODE> - the operation mode. 0 means to delete the account. 1 means to set the |
550 |
account as an administrator. 2 means to set the account as a normal user. |
551 |
<DT><B>Returns:</B><DD>true if success, else it is false.</DL> |
552 |
</DD> |
553 |
</DL> |
554 |
<HR> |
555 |
|
556 |
<A NAME="size()"><!-- --></A><H3> |
557 |
size</H3> |
558 |
<PRE> |
559 |
public double <B>size</B>()</PRE> |
560 |
<DL> |
561 |
<DD>Get the size of the datbase of a node. |
562 |
<P> |
563 |
<DD><DL> |
564 |
|
565 |
<DT><B>Returns:</B><DD>the size of the datbase of the node. On error, -1.0 is returned.</DL> |
566 |
</DD> |
567 |
</DL> |
568 |
<HR> |
569 |
|
570 |
<A NAME="status()"><!-- --></A><H3> |
571 |
status</H3> |
572 |
<PRE> |
573 |
public int <B>status</B>()</PRE> |
574 |
<DL> |
575 |
<DD>Get the status code of the last request. |
576 |
<P> |
577 |
<DD><DL> |
578 |
|
579 |
<DT><B>Returns:</B><DD>the status code of the last request.</DL> |
580 |
</DD> |
581 |
</DL> |
582 |
<HR> |
583 |
|
584 |
<A NAME="uri_to_id(java.lang.String)"><!-- --></A><H3> |
585 |
uri_to_id</H3> |
586 |
<PRE> |
587 |
public int <B>uri_to_id</B>(java.lang.String uri)</PRE> |
588 |
<DL> |
589 |
<DD>Get the ID of a document spacified by URI. |
590 |
<P> |
591 |
<DD><DL> |
592 |
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of a registered document. |
593 |
<DT><B>Returns:</B><DD>the ID of the document. On error, -1 is returned.</DL> |
594 |
</DD> |
595 |
</DL> |
596 |
<HR> |
597 |
|
598 |
<A NAME="word_num()"><!-- --></A><H3> |
599 |
word_num</H3> |
600 |
<PRE> |
601 |
public int <B>word_num</B>()</PRE> |
602 |
<DL> |
603 |
<DD>Get the number of unique words. |
604 |
<P> |
605 |
<DD><DL> |
606 |
|
607 |
<DT><B>Returns:</B><DD>the number of unique words. On error, -1 is returned.</DL> |
608 |
</DD> |
609 |
</DL> |
610 |
<!-- ========= END OF CLASS DATA ========= --> |
611 |
<HR> |
612 |
|
613 |
|
614 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
615 |
<A NAME="navbar_bottom"><!-- --></A> |
616 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
617 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
618 |
<TR> |
619 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
620 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
621 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
622 |
<TR ALIGN="center" VALIGN="top"> |
623 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
624 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
625 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
626 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
627 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
628 |
</TR> |
629 |
</TABLE> |
630 |
</TD> |
631 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
632 |
</EM> |
633 |
</TD> |
634 |
</TR> |
635 |
|
636 |
<TR> |
637 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
638 |
<A HREF="../estraier/DocumentImpl.html" title="class in estraier"><B>PREV CLASS</B></A> |
639 |
<A HREF="../estraier/NodeImpl.html" title="class in estraier"><B>NEXT CLASS</B></A></FONT></TD> |
640 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
641 |
<A HREF="../index.html" target="_top"><B>FRAMES</B></A> |
642 |
<A HREF="Node.html" target="_top"><B>NO FRAMES</B></A> |
643 |
<SCRIPT type="text/javascript"> |
644 |
<!-- |
645 |
if(window==top) { |
646 |
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); |
647 |
} |
648 |
//--> |
649 |
</SCRIPT> |
650 |
<NOSCRIPT> |
651 |
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A> |
652 |
</NOSCRIPT> |
653 |
|
654 |
</FONT></TD> |
655 |
</TR> |
656 |
<TR> |
657 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
658 |
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
659 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
660 |
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
661 |
</TR> |
662 |
</TABLE> |
663 |
<A NAME="skip-navbar_bottom"></A> |
664 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
665 |
|
666 |
<HR> |
667 |
|
668 |
</BODY> |
669 |
</HTML> |