You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2012/04/17 14:03:20 UTC
svn commit: r1327053 -
/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java
Author: siren
Date: Tue Apr 17 12:03:20 2012
New Revision: 1327053
URL: http://svn.apache.org/viewvc?rev=1327053&view=rev
Log:
SOLR-3341: add more javadocs
Modified:
lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java
Modified: lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java?rev=1327053&r1=1327052&r2=1327053&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java (original)
+++ lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java Tue Apr 17 12:03:20 2012
@@ -47,6 +47,12 @@ import org.apache.solr.common.util.Named
import org.apache.solr.common.util.StrUtils;
import org.apache.zookeeper.KeeperException;
+/**
+ * SolrJ client class to communicate with SolrCloud.
+ * Instances of this class communicate with Zookeeper to discover
+ * Solr endpoints for SolrCloud collections, and then use the
+ * {@link LBHttpSolrServer} to issue requests.
+ */
public class CloudSolrServer extends SolrServer {
private volatile ZkStateReader zkStateReader;
private String zkHost; // the zk server address
@@ -57,7 +63,8 @@ public class CloudSolrServer extends Sol
Random rand = new Random();
private ThreadSafeClientConnManager connManager;
/**
- * @param zkHost The address of the zookeeper quorum containing the cloud state
+ * @param zkHost The client endpoint of the zookeeper quorum containing the cloud state,
+ * in the form HOST:PORT.
*/
public CloudSolrServer(String zkHost) throws MalformedURLException {
connManager = new ThreadSafeClientConnManager();
@@ -66,7 +73,9 @@ public class CloudSolrServer extends Sol
}
/**
- * @param zkHost The address of the zookeeper quorum containing the cloud state
+ * @param zkHost The client endpoint of the zookeeper quorum containing the cloud state,
+ * in the form HOST:PORT.
+ * @param lbServer LBHttpSolrServer instance for requests.
*/
public CloudSolrServer(String zkHost, LBHttpSolrServer lbServer) {
this.zkHost = zkHost;