source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/common/cloud/CloudState.html @ 7588

Revision 7588, 35.4 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>
8CloudState (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="CloudState (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/CloudState.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;PREV CLASS&nbsp;
59&nbsp;<A HREF="../../../../../org/apache/solr/common/cloud/DefaultConnectionStrategy.html" title="class in org.apache.solr.common.cloud"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../index.html?org/apache/solr/common/cloud/CloudState.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="CloudState.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.common.cloud</FONT>
92<BR>
93Class CloudState</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 "><B>org.apache.solr.common.cloud.CloudState</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/noggit/JSONWriter.Writable.html" title="interface in org.apache.noggit">JSONWriter.Writable</A></DD>
100</DL>
101<HR>
102<DL>
103<DT><PRE>public class <B>CloudState</B><DT>extends <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><DT>implements <A HREF="../../../../../org/apache/noggit/JSONWriter.Writable.html" title="interface in org.apache.noggit">JSONWriter.Writable</A></DL>
104</PRE>
105
106<P>
107Immutable state of the cloud. Normally you can get the state by using
108 <A HREF="../../../../../org/apache/solr/common/cloud/ZkStateReader.html#getCloudState()"><CODE>ZkStateReader.getCloudState()</CODE></A>.
109<P>
110
111<P>
112<HR>
113
114<P>
115
116<!-- ======== CONSTRUCTOR SUMMARY ======== -->
117
118<A NAME="constructor_summary"><!-- --></A>
119<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
122<B>Constructor Summary</B></FONT></TH>
123</TR>
124<TR BGCOLOR="white" CLASS="TableRowColor">
125<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#CloudState(java.util.Set, java.util.Map)">CloudState</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;&nbsp;liveNodes,
126           <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&gt;&nbsp;collectionStates)</CODE>
127
128<BR>
129&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
130</TR>
131</TABLE>
132&nbsp;
133<!-- ========== METHOD SUMMARY =========== -->
134
135<A NAME="method_summary"><!-- --></A>
136<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
138<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
139<B>Method Summary</B></FONT></TH>
140</TR>
141<TR BGCOLOR="white" CLASS="TableRowColor">
142<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;</CODE></FONT></TD>
144<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getCollections()">getCollections</A></B>()</CODE>
145
146<BR>
147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get collection names.</TD>
148</TR>
149<TR BGCOLOR="white" CLASS="TableRowColor">
150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&gt;</CODE></FONT></TD>
152<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getCollectionStates()">getCollectionStates</A></B>()</CODE>
153
154<BR>
155&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
156</TR>
157<TR BGCOLOR="white" CLASS="TableRowColor">
158<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159<CODE>&nbsp;<A HREF="../../../../../org/apache/solr/common/cloud/ZkNodeProps.html" title="class in org.apache.solr.common.cloud">ZkNodeProps</A></CODE></FONT></TD>
160<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getLeader(java.lang.String, java.lang.String)">getLeader</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;collection,
161          <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;shard)</CODE>
162
163<BR>
164&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get properties of a shard leader for specific collection.</TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getLiveNodes()">getLiveNodes</A></B>()</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get names of the currently live nodes.</TD>
173</TR>
174<TR BGCOLOR="white" CLASS="TableRowColor">
175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176<CODE>&nbsp;org.apache.solr.common.cloud.CloudState.RangeInfo</CODE></FONT></TD>
177<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getRanges(java.lang.String)">getRanges</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;collection)</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="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getShard(int, java.lang.String)">getShard</A></B>(int&nbsp;hash,
186         <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;collection)</CODE>
187
188<BR>
189&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get shard id for hash.</TD>
190</TR>
191<TR BGCOLOR="white" CLASS="TableRowColor">
192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193<CODE>&nbsp;<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></CODE></FONT></TD>
194<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getShardId(java.lang.String)">getShardId</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;coreNodeName)</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get shardId for core.</TD>
198</TR>
199<TR BGCOLOR="white" CLASS="TableRowColor">
200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201<CODE>&nbsp;<A HREF="../../../../../org/apache/solr/common/cloud/ZkNodeProps.html" title="class in org.apache.solr.common.cloud">ZkNodeProps</A></CODE></FONT></TD>
202<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getShardProps(java.lang.String, java.lang.String)">getShardProps</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;collection,
203              <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;coreNodeName)</CODE>
204
205<BR>
206&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get shard properties or null if shard is not found.</TD>
207</TR>
208<TR BGCOLOR="white" CLASS="TableRowColor">
209<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210<CODE>&nbsp;<A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A></CODE></FONT></TD>
211<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getSlice(java.lang.String, java.lang.String)">getSlice</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;collection,
212         <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;slice)</CODE>
213
214<BR>
215&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index Slice for collection.</TD>
216</TR>
217<TR BGCOLOR="white" CLASS="TableRowColor">
218<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;</CODE></FONT></TD>
220<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#getSlices(java.lang.String)">getSlices</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;collection)</CODE>
221
222<BR>
223&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get all slices for collection.</TD>
224</TR>
225<TR BGCOLOR="white" CLASS="TableRowColor">
226<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227<CODE>&nbsp;boolean</CODE></FONT></TD>
228<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#liveNodesContain(java.lang.String)">liveNodesContain</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;name)</CODE>
229
230<BR>
231&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if node is alive.</TD>
232</TR>
233<TR BGCOLOR="white" CLASS="TableRowColor">
234<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235<CODE>static&nbsp;<A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html" title="class in org.apache.solr.common.cloud">CloudState</A></CODE></FONT></TD>
236<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#load(byte[], java.util.Set)">load</A></B>(byte[]&nbsp;bytes,
237     <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;&nbsp;liveNodes)</CODE>
238
239<BR>
240&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create CloudState from json string that is typically stored in zookeeper.</TD>
241</TR>
242<TR BGCOLOR="white" CLASS="TableRowColor">
243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244<CODE>static&nbsp;<A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html" title="class in org.apache.solr.common.cloud">CloudState</A></CODE></FONT></TD>
245<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#load(org.apache.solr.common.cloud.SolrZkClient, java.util.Set)">load</A></B>(<A HREF="../../../../../org/apache/solr/common/cloud/SolrZkClient.html" title="class in org.apache.solr.common.cloud">SolrZkClient</A>&nbsp;zkClient,
246     <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;&nbsp;liveNodes)</CODE>
247
248<BR>
249&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create CloudState by reading the current state from zookeeper.</TD>
250</TR>
251<TR BGCOLOR="white" CLASS="TableRowColor">
252<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253<CODE>&nbsp;<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></CODE></FONT></TD>
254<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#toString()">toString</A></B>()</CODE>
255
256<BR>
257&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
258</TR>
259<TR BGCOLOR="white" CLASS="TableRowColor">
260<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261<CODE>&nbsp;void</CODE></FONT></TD>
262<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html#write(org.apache.noggit.JSONWriter)">write</A></B>(<A HREF="../../../../../org/apache/noggit/JSONWriter.html" title="class in org.apache.noggit">JSONWriter</A>&nbsp;jsonWriter)</CODE>
263
264<BR>
265&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
266</TR>
267</TABLE>
268&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
269<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
270<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
271<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>
272</TR>
273<TR BGCOLOR="white" CLASS="TableRowColor">
274<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#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>
275</TR>
276</TABLE>
277&nbsp;
278<P>
279
280<!-- ========= CONSTRUCTOR DETAIL ======== -->
281
282<A NAME="constructor_detail"><!-- --></A>
283<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
284<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
285<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
286<B>Constructor Detail</B></FONT></TH>
287</TR>
288</TABLE>
289
290<A NAME="CloudState(java.util.Set, java.util.Map)"><!-- --></A><H3>
291CloudState</H3>
292<PRE>
293public <B>CloudState</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;&nbsp;liveNodes,
294                  <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&gt;&nbsp;collectionStates)</PRE>
295<DL>
296</DL>
297
298<!-- ============ METHOD DETAIL ========== -->
299
300<A NAME="method_detail"><!-- --></A>
301<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
302<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
303<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
304<B>Method Detail</B></FONT></TH>
305</TR>
306</TABLE>
307
308<A NAME="getLeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
309getLeader</H3>
310<PRE>
311public <A HREF="../../../../../org/apache/solr/common/cloud/ZkNodeProps.html" title="class in org.apache.solr.common.cloud">ZkNodeProps</A> <B>getLeader</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;collection,
312                             <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;shard)</PRE>
313<DL>
314<DD>Get properties of a shard leader for specific collection.
315<P>
316<DD><DL>
317</DL>
318</DD>
319<DD><DL>
320</DL>
321</DD>
322</DL>
323<HR>
324
325<A NAME="getShardProps(java.lang.String, java.lang.String)"><!-- --></A><H3>
326getShardProps</H3>
327<PRE>
328public <A HREF="../../../../../org/apache/solr/common/cloud/ZkNodeProps.html" title="class in org.apache.solr.common.cloud">ZkNodeProps</A> <B>getShardProps</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;collection,
329                                 <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;coreNodeName)</PRE>
330<DL>
331<DD>Get shard properties or null if shard is not found.
332<P>
333<DD><DL>
334</DL>
335</DD>
336<DD><DL>
337</DL>
338</DD>
339</DL>
340<HR>
341
342<A NAME="getSlice(java.lang.String, java.lang.String)"><!-- --></A><H3>
343getSlice</H3>
344<PRE>
345public <A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A> <B>getSlice</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;collection,
346                      <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;slice)</PRE>
347<DL>
348<DD>Get the index Slice for collection.
349<P>
350<DD><DL>
351</DL>
352</DD>
353<DD><DL>
354</DL>
355</DD>
356</DL>
357<HR>
358
359<A NAME="getSlices(java.lang.String)"><!-- --></A><H3>
360getSlices</H3>
361<PRE>
362public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt; <B>getSlices</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;collection)</PRE>
363<DL>
364<DD>Get all slices for collection.
365<P>
366<DD><DL>
367</DL>
368</DD>
369<DD><DL>
370</DL>
371</DD>
372</DL>
373<HR>
374
375<A NAME="getCollections()"><!-- --></A><H3>
376getCollections</H3>
377<PRE>
378public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt; <B>getCollections</B>()</PRE>
379<DL>
380<DD>Get collection names.
381<P>
382<DD><DL>
383</DL>
384</DD>
385<DD><DL>
386</DL>
387</DD>
388</DL>
389<HR>
390
391<A NAME="getCollectionStates()"><!-- --></A><H3>
392getCollectionStates</H3>
393<PRE>
394public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&lt;<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>,<A HREF="../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&gt; <B>getCollectionStates</B>()</PRE>
395<DL>
396<DD><DL>
397</DL>
398</DD>
399<DD><DL>
400</DL>
401</DD>
402</DL>
403<HR>
404
405<A NAME="getLiveNodes()"><!-- --></A><H3>
406getLiveNodes</H3>
407<PRE>
408public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt; <B>getLiveNodes</B>()</PRE>
409<DL>
410<DD>Get names of the currently live nodes.
411<P>
412<DD><DL>
413</DL>
414</DD>
415<DD><DL>
416</DL>
417</DD>
418</DL>
419<HR>
420
421<A NAME="getShardId(java.lang.String)"><!-- --></A><H3>
422getShardId</H3>
423<PRE>
424public <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> <B>getShardId</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;coreNodeName)</PRE>
425<DL>
426<DD>Get shardId for core.
427<P>
428<DD><DL>
429</DL>
430</DD>
431<DD><DL>
432<DT><B>Parameters:</B><DD><CODE>coreNodeName</CODE> - in the form of nodeName_coreName</DL>
433</DD>
434</DL>
435<HR>
436
437<A NAME="liveNodesContain(java.lang.String)"><!-- --></A><H3>
438liveNodesContain</H3>
439<PRE>
440public boolean <B>liveNodesContain</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;name)</PRE>
441<DL>
442<DD>Check if node is alive.
443<P>
444<DD><DL>
445</DL>
446</DD>
447<DD><DL>
448</DL>
449</DD>
450</DL>
451<HR>
452
453<A NAME="getRanges(java.lang.String)"><!-- --></A><H3>
454getRanges</H3>
455<PRE>
456public org.apache.solr.common.cloud.CloudState.RangeInfo <B>getRanges</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;collection)</PRE>
457<DL>
458<DD><DL>
459</DL>
460</DD>
461<DD><DL>
462</DL>
463</DD>
464</DL>
465<HR>
466
467<A NAME="getShard(int, java.lang.String)"><!-- --></A><H3>
468getShard</H3>
469<PRE>
470public <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> <B>getShard</B>(int&nbsp;hash,
471                       <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;collection)</PRE>
472<DL>
473<DD>Get shard id for hash. This is used when determining which Slice the
474 document is to be submitted to.
475<P>
476<DD><DL>
477</DL>
478</DD>
479<DD><DL>
480</DL>
481</DD>
482</DL>
483<HR>
484
485<A NAME="toString()"><!-- --></A><H3>
486toString</H3>
487<PRE>
488public <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> <B>toString</B>()</PRE>
489<DL>
490<DD><DL>
491<DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><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></CODE></DL>
492</DD>
493<DD><DL>
494</DL>
495</DD>
496</DL>
497<HR>
498
499<A NAME="load(org.apache.solr.common.cloud.SolrZkClient, java.util.Set)"><!-- --></A><H3>
500load</H3>
501<PRE>
502public static <A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html" title="class in org.apache.solr.common.cloud">CloudState</A> <B>load</B>(<A HREF="../../../../../org/apache/solr/common/cloud/SolrZkClient.html" title="class in org.apache.solr.common.cloud">SolrZkClient</A>&nbsp;zkClient,
503                              <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;&nbsp;liveNodes)
504                       throws org.apache.zookeeper.KeeperException,
505                              <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE>
506<DL>
507<DD>Create CloudState by reading the current state from zookeeper.
508<P>
509<DD><DL>
510</DL>
511</DD>
512<DD><DL>
513
514<DT><B>Throws:</B>
515<DD><CODE>org.apache.zookeeper.KeeperException</CODE>
516<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL>
517</DD>
518</DL>
519<HR>
520
521<A NAME="load(byte[], java.util.Set)"><!-- --></A><H3>
522load</H3>
523<PRE>
524public static <A HREF="../../../../../org/apache/solr/common/cloud/CloudState.html" title="class in org.apache.solr.common.cloud">CloudState</A> <B>load</B>(byte[]&nbsp;bytes,
525                              <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A>&lt;<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>&gt;&nbsp;liveNodes)
526                       throws org.apache.zookeeper.KeeperException,
527                              <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE>
528<DL>
529<DD>Create CloudState from json string that is typically stored in zookeeper.
530<P>
531<DD><DL>
532</DL>
533</DD>
534<DD><DL>
535
536<DT><B>Throws:</B>
537<DD><CODE>org.apache.zookeeper.KeeperException</CODE>
538<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></CODE></DL>
539</DD>
540</DL>
541<HR>
542
543<A NAME="write(org.apache.noggit.JSONWriter)"><!-- --></A><H3>
544write</H3>
545<PRE>
546public void <B>write</B>(<A HREF="../../../../../org/apache/noggit/JSONWriter.html" title="class in org.apache.noggit">JSONWriter</A>&nbsp;jsonWriter)</PRE>
547<DL>
548<DD><DL>
549<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/noggit/JSONWriter.Writable.html#write(org.apache.noggit.JSONWriter)">write</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/noggit/JSONWriter.Writable.html" title="interface in org.apache.noggit">JSONWriter.Writable</A></CODE></DL>
550</DD>
551<DD><DL>
552</DL>
553</DD>
554</DL>
555<!-- ========= END OF CLASS DATA ========= -->
556<HR>
557
558
559<!-- ======= START OF BOTTOM NAVBAR ====== -->
560<A NAME="navbar_bottom"><!-- --></A>
561<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
562<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
563<TR>
564<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
565<A NAME="navbar_bottom_firstrow"><!-- --></A>
566<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
567  <TR ALIGN="center" VALIGN="top">
568  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
569  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
570  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
571  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CloudState.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
572  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
573  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
574  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
575  </TR>
576</TABLE>
577</TD>
578<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
579</EM>
580</TD>
581</TR>
582
583<TR>
584<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
585&nbsp;PREV CLASS&nbsp;
586&nbsp;<A HREF="../../../../../org/apache/solr/common/cloud/DefaultConnectionStrategy.html" title="class in org.apache.solr.common.cloud"><B>NEXT CLASS</B></A></FONT></TD>
587<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
588  <A HREF="../../../../../index.html?org/apache/solr/common/cloud/CloudState.html" target="_top"><B>FRAMES</B></A>  &nbsp;
589&nbsp;<A HREF="CloudState.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
590&nbsp;<SCRIPT type="text/javascript">
591  <!--
592  if(window==top) {
593    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
594  }
595  //-->
596</SCRIPT>
597<NOSCRIPT>
598  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
599</NOSCRIPT>
600
601
602</FONT></TD>
603</TR>
604<TR>
605<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
606  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
607<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
608DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
609</TR>
610</TABLE>
611<A NAME="skip-navbar_bottom"></A>
612<!-- ======== END OF BOTTOM NAVBAR ======= -->
613
614<HR>
615
616          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
617          <script src='../../../../../prettify.js' type='text/javascript'></script>
618          <script type='text/javascript'>
619            (function(){
620              var oldonload = window.onload;
621              if (typeof oldonload != 'function') {
622                window.onload = prettyPrint;
623              } else {
624                window.onload = function() {
625                  oldonload();
626                  prettyPrint();
627                }
628              }
629            })();
630          </script>
631       
632</BODY>
633</HTML>
Note: See TracBrowser for help on using the repository browser.