source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html @ 7588

Revision 7588, 27.8 KB checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
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_24) on Mon Jun 25 15:26:26 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8ConcurrentUpdateSolrServer (Solr 4.0.0-ALPHA API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-06-25">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="ConcurrentUpdateSolrServer (Solr 4.0.0-ALPHA API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ConcurrentUpdateSolrServer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../../../../org/apache/solr/client/solrj/impl/CloudSolrServer.html" title="class in org.apache.solr.client.solrj.impl"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../../org/apache/solr/client/solrj/impl/HttpClientUtil.html" title="class in org.apache.solr.client.solrj.impl"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../../index.html?org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="ConcurrentUpdateSolrServer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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">
91org.apache.solr.client.solrj.impl</FONT>
92<BR>
93Class ConcurrentUpdateSolrServer</H2>
94<PRE>
95<A HREF="http://download.oracle.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 "><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html" title="class in org.apache.solr.client.solrj">org.apache.solr.client.solrj.SolrServer</A>
97      <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer</B>
98</PRE>
99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD>
101</DL>
102<HR>
103<DL>
104<DT><PRE>public class <B>ConcurrentUpdateSolrServer</B><DT>extends <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html" title="class in org.apache.solr.client.solrj">SolrServer</A></DL>
105</PRE>
106
107<P>
108ConcurrentUpdateSolrServer buffers all added documents and writes
109 them into open HTTP connections. This class is thread safe.
110 
111 Params from <A HREF="../../../../../../org/apache/solr/client/solrj/request/UpdateRequest.html" title="class in org.apache.solr.client.solrj.request"><CODE>UpdateRequest</CODE></A> are converted to http request
112 parameters. When params change between UpdateRequests a new HTTP
113 request is started.
114 
115 Although any SolrServer request can be made with this implementation, it is
116 only recommended to use ConcurrentUpdateSolrServer with /update
117 requests. The class <A HREF="../../../../../../org/apache/solr/client/solrj/impl/HttpSolrServer.html" title="class in org.apache.solr.client.solrj.impl"><CODE>HttpSolrServer</CODE></A> is better suited for the
118 query interface.
119<P>
120
121<P>
122<DL>
123<DT><B>See Also:</B><DD><A HREF="../../../../../../serialized-form.html#org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer">Serialized Form</A></DL>
124<HR>
125
126<P>
127
128<!-- ======== CONSTRUCTOR SUMMARY ======== -->
129
130<A NAME="constructor_summary"><!-- --></A>
131<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
132<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
133<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
134<B>Constructor Summary</B></FONT></TH>
135</TR>
136<TR BGCOLOR="white" CLASS="TableRowColor">
137<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#ConcurrentUpdateSolrServer(java.lang.String, org.apache.http.client.HttpClient, int, int)">ConcurrentUpdateSolrServer</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;solrServerUrl,
138                           org.apache.http.client.HttpClient&nbsp;client,
139                           int&nbsp;queueSize,
140                           int&nbsp;threadCount)</CODE>
141
142<BR>
143&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uses the supplied HttpClient to send documents to the Solr server, the
144 HttpClient should be instantiated using a
145 ThreadSafeClientConnManager.</TD>
146</TR>
147<TR BGCOLOR="white" CLASS="TableRowColor">
148<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#ConcurrentUpdateSolrServer(java.lang.String, int, int)">ConcurrentUpdateSolrServer</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;solrServerUrl,
149                           int&nbsp;queueSize,
150                           int&nbsp;threadCount)</CODE>
151
152<BR>
153&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uses an internal ThreadSafeClientConnManager to manage http
154 connections.</TD>
155</TR>
156</TABLE>
157&nbsp;
158<!-- ========== METHOD SUMMARY =========== -->
159
160<A NAME="method_summary"><!-- --></A>
161<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
162<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
163<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
164<B>Method Summary</B></FONT></TH>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;void</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#blockUntilFinished()">blockUntilFinished</A></B>()</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173</TR>
174<TR BGCOLOR="white" CLASS="TableRowColor">
175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176<CODE>&nbsp;void</CODE></FONT></TD>
177<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#handleError(java.lang.Throwable)">handleError</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;ex)</CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184<CODE>&nbsp;<A HREF="../../../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&gt;</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#request(org.apache.solr.client.solrj.SolrRequest)">request</A></B>(<A HREF="../../../../../../org/apache/solr/client/solrj/SolrRequest.html" title="class in org.apache.solr.client.solrj">SolrRequest</A>&nbsp;request)</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SolrServer implementations need to implement how a request is actually processed</TD>
189</TR>
190<TR BGCOLOR="white" CLASS="TableRowColor">
191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192<CODE>&nbsp;void</CODE></FONT></TD>
193<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#setParser(org.apache.solr.client.solrj.ResponseParser)">setParser</A></B>(<A HREF="../../../../../../org/apache/solr/client/solrj/ResponseParser.html" title="class in org.apache.solr.client.solrj">ResponseParser</A>&nbsp;responseParser)</CODE>
194
195<BR>
196&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
197</TR>
198<TR BGCOLOR="white" CLASS="TableRowColor">
199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200<CODE>&nbsp;void</CODE></FONT></TD>
201<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#setRequestWriter(org.apache.solr.client.solrj.request.RequestWriter)">setRequestWriter</A></B>(<A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.html" title="class in org.apache.solr.client.solrj.request">RequestWriter</A>&nbsp;requestWriter)</CODE>
202
203<BR>
204&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>&nbsp;void</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#shutdown()">shutdown</A></B>()</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Release allocated resources.</TD>
213</TR>
214<TR BGCOLOR="white" CLASS="TableRowColor">
215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216<CODE>&nbsp;void</CODE></FONT></TD>
217<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html#shutdownNow()">shutdownNow</A></B>()</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
221</TR>
222</TABLE>
223&nbsp;<A NAME="methods_inherited_from_class_org.apache.solr.client.solrj.SolrServer"><!-- --></A>
224<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
225<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
226<TH ALIGN="left"><B>Methods inherited from class org.apache.solr.client.solrj.<A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html" title="class in org.apache.solr.client.solrj">SolrServer</A></B></TH>
227</TR>
228<TR BGCOLOR="white" CLASS="TableRowColor">
229<TD><CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#add(java.util.Collection)">add</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#add(java.util.Collection, int)">add</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#add(org.apache.solr.common.SolrInputDocument)">add</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#add(org.apache.solr.common.SolrInputDocument, int)">add</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#addBean(java.lang.Object)">addBean</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#addBean(java.lang.Object, int)">addBean</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#addBeans(java.util.Collection)">addBeans</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#addBeans(java.util.Collection, int)">addBeans</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#commit()">commit</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#commit(boolean, boolean)">commit</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#commit(boolean, boolean, boolean)">commit</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#deleteById(java.util.List)">deleteById</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#deleteById(java.util.List, int)">deleteById</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#deleteById(java.lang.String)">deleteById</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#deleteById(java.lang.String, int)">deleteById</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#deleteByQuery(java.lang.String)">deleteByQuery</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#deleteByQuery(java.lang.String, int)">deleteByQuery</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#getBinder()">getBinder</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#optimize()">optimize</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#optimize(boolean, boolean)">optimize</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#optimize(boolean, boolean, int)">optimize</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#ping()">ping</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#query(org.apache.solr.common.params.SolrParams)">query</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#query(org.apache.solr.common.params.SolrParams, org.apache.solr.client.solrj.SolrRequest.METHOD)">query</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#queryAndStreamResponse(org.apache.solr.common.params.SolrParams, org.apache.solr.client.solrj.StreamingResponseCallback)">queryAndStreamResponse</A>, <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#rollback()">rollback</A></CODE></TD>
230</TR>
231</TABLE>
232&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
233<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
234<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
235<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD><CODE><A HREF="http://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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://download.oracle.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>
239</TR>
240</TABLE>
241&nbsp;
242<P>
243
244<!-- ========= CONSTRUCTOR DETAIL ======== -->
245
246<A NAME="constructor_detail"><!-- --></A>
247<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
248<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
249<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
250<B>Constructor Detail</B></FONT></TH>
251</TR>
252</TABLE>
253
254<A NAME="ConcurrentUpdateSolrServer(java.lang.String, int, int)"><!-- --></A><H3>
255ConcurrentUpdateSolrServer</H3>
256<PRE>
257public <B>ConcurrentUpdateSolrServer</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;solrServerUrl,
258                                  int&nbsp;queueSize,
259                                  int&nbsp;threadCount)
260                           throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/net/MalformedURLException.html?is-external=true" title="class or interface in java.net">MalformedURLException</A></PRE>
261<DL>
262<DD>Uses an internal ThreadSafeClientConnManager to manage http
263 connections.
264<P>
265<DL>
266<DT><B>Parameters:</B><DD><CODE>solrServerUrl</CODE> - The Solr server URL<DD><CODE>queueSize</CODE> - The buffer size before the documents are sent to the server<DD><CODE>threadCount</CODE> - The number of background threads used to empty the queue
267<DT><B>Throws:</B>
268<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/net/MalformedURLException.html?is-external=true" title="class or interface in java.net">MalformedURLException</A></CODE></DL>
269</DL>
270<HR>
271
272<A NAME="ConcurrentUpdateSolrServer(java.lang.String, org.apache.http.client.HttpClient, int, int)"><!-- --></A><H3>
273ConcurrentUpdateSolrServer</H3>
274<PRE>
275public <B>ConcurrentUpdateSolrServer</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;solrServerUrl,
276                                  org.apache.http.client.HttpClient&nbsp;client,
277                                  int&nbsp;queueSize,
278                                  int&nbsp;threadCount)
279                           throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/net/MalformedURLException.html?is-external=true" title="class or interface in java.net">MalformedURLException</A></PRE>
280<DL>
281<DD>Uses the supplied HttpClient to send documents to the Solr server, the
282 HttpClient should be instantiated using a
283 ThreadSafeClientConnManager.
284<P>
285<DL>
286
287<DT><B>Throws:</B>
288<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/net/MalformedURLException.html?is-external=true" title="class or interface in java.net">MalformedURLException</A></CODE></DL>
289</DL>
290
291<!-- ============ METHOD DETAIL ========== -->
292
293<A NAME="method_detail"><!-- --></A>
294<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
295<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
296<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
297<B>Method Detail</B></FONT></TH>
298</TR>
299</TABLE>
300
301<A NAME="request(org.apache.solr.client.solrj.SolrRequest)"><!-- --></A><H3>
302request</H3>
303<PRE>
304public <A HREF="../../../../../../org/apache/solr/common/util/NamedList.html" title="class in org.apache.solr.common.util">NamedList</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&gt; <B>request</B>(<A HREF="../../../../../../org/apache/solr/client/solrj/SolrRequest.html" title="class in org.apache.solr.client.solrj">SolrRequest</A>&nbsp;request)
305                          throws <A HREF="../../../../../../org/apache/solr/client/solrj/SolrServerException.html" title="class in org.apache.solr.client.solrj">SolrServerException</A>,
306                                 <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
307<DL>
308<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#request(org.apache.solr.client.solrj.SolrRequest)">SolrServer</A></CODE></B></DD>
309<DD>SolrServer implementations need to implement how a request is actually processed
310<P>
311<DD><DL>
312<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#request(org.apache.solr.client.solrj.SolrRequest)">request</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html" title="class in org.apache.solr.client.solrj">SolrServer</A></CODE></DL>
313</DD>
314<DD><DL>
315
316<DT><B>Throws:</B>
317<DD><CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServerException.html" title="class in org.apache.solr.client.solrj">SolrServerException</A></CODE>
318<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
319</DD>
320</DL>
321<HR>
322
323<A NAME="blockUntilFinished()"><!-- --></A><H3>
324blockUntilFinished</H3>
325<PRE>
326public void <B>blockUntilFinished</B>()</PRE>
327<DL>
328<DD><DL>
329</DL>
330</DD>
331</DL>
332<HR>
333
334<A NAME="handleError(java.lang.Throwable)"><!-- --></A><H3>
335handleError</H3>
336<PRE>
337public void <B>handleError</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;ex)</PRE>
338<DL>
339<DD><DL>
340</DL>
341</DD>
342</DL>
343<HR>
344
345<A NAME="shutdown()"><!-- --></A><H3>
346shutdown</H3>
347<PRE>
348public void <B>shutdown</B>()</PRE>
349<DL>
350<DD><B>Description copied from class: <CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#shutdown()">SolrServer</A></CODE></B></DD>
351<DD>Release allocated resources.
352<P>
353<DD><DL>
354<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html#shutdown()">shutdown</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/solr/client/solrj/SolrServer.html" title="class in org.apache.solr.client.solrj">SolrServer</A></CODE></DL>
355</DD>
356<DD><DL>
357</DL>
358</DD>
359</DL>
360<HR>
361
362<A NAME="shutdownNow()"><!-- --></A><H3>
363shutdownNow</H3>
364<PRE>
365public void <B>shutdownNow</B>()</PRE>
366<DL>
367<DD><DL>
368</DL>
369</DD>
370</DL>
371<HR>
372
373<A NAME="setParser(org.apache.solr.client.solrj.ResponseParser)"><!-- --></A><H3>
374setParser</H3>
375<PRE>
376public void <B>setParser</B>(<A HREF="../../../../../../org/apache/solr/client/solrj/ResponseParser.html" title="class in org.apache.solr.client.solrj">ResponseParser</A>&nbsp;responseParser)</PRE>
377<DL>
378<DD><DL>
379</DL>
380</DD>
381</DL>
382<HR>
383
384<A NAME="setRequestWriter(org.apache.solr.client.solrj.request.RequestWriter)"><!-- --></A><H3>
385setRequestWriter</H3>
386<PRE>
387public void <B>setRequestWriter</B>(<A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.html" title="class in org.apache.solr.client.solrj.request">RequestWriter</A>&nbsp;requestWriter)</PRE>
388<DL>
389<DD><DL>
390</DL>
391</DD>
392</DL>
393<!-- ========= END OF CLASS DATA ========= -->
394<HR>
395
396
397<!-- ======= START OF BOTTOM NAVBAR ====== -->
398<A NAME="navbar_bottom"><!-- --></A>
399<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
400<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
401<TR>
402<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
403<A NAME="navbar_bottom_firstrow"><!-- --></A>
404<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
405  <TR ALIGN="center" VALIGN="top">
406  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
407  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
408  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
409  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ConcurrentUpdateSolrServer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
410  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
411  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
412  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
413  </TR>
414</TABLE>
415</TD>
416<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
417</EM>
418</TD>
419</TR>
420
421<TR>
422<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
423&nbsp;<A HREF="../../../../../../org/apache/solr/client/solrj/impl/CloudSolrServer.html" title="class in org.apache.solr.client.solrj.impl"><B>PREV CLASS</B></A>&nbsp;
424&nbsp;<A HREF="../../../../../../org/apache/solr/client/solrj/impl/HttpClientUtil.html" title="class in org.apache.solr.client.solrj.impl"><B>NEXT CLASS</B></A></FONT></TD>
425<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
426  <A HREF="../../../../../../index.html?org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
427&nbsp;<A HREF="ConcurrentUpdateSolrServer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
428&nbsp;<SCRIPT type="text/javascript">
429  <!--
430  if(window==top) {
431    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
432  }
433  //-->
434</SCRIPT>
435<NOSCRIPT>
436  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
437</NOSCRIPT>
438
439
440</FONT></TD>
441</TR>
442<TR>
443<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
444  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
445<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
446DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
447</TR>
448</TABLE>
449<A NAME="skip-navbar_bottom"></A>
450<!-- ======== END OF BOTTOM NAVBAR ======= -->
451
452<HR>
453
454          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
455          <script src='../../../../../../prettify.js' type='text/javascript'></script>
456          <script type='text/javascript'>
457            (function(){
458              var oldonload = window.onload;
459              if (typeof oldonload != 'function') {
460                window.onload = prettyPrint;
461              } else {
462                window.onload = function() {
463                  oldonload();
464                  prettyPrint();
465                }
466              }
467            })();
468          </script>
469       
470</BODY>
471</HTML>
Note: See TracBrowser for help on using the repository browser.