/[hyperestraier]/upstream/0.5.3/doc/japidoc/estraier/Node.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /upstream/0.5.3/doc/japidoc/estraier/Node.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations)
Wed Aug 3 15:25:48 2005 UTC (18 years, 10 months ago) by dpavlin
File MIME type: text/html
File size: 22542 byte(s)
import of upstream 0.5.3

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

  ViewVC Help
Powered by ViewVC 1.1.26