SOLR-3341: add more javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1327053 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sami Siren 2012-04-17 12:03:20 +00:00
parent c034056ff2
commit 0daa4b0aac
1 changed files with 11 additions and 2 deletions

View File

@ -47,6 +47,12 @@ import org.apache.solr.common.util.NamedList;
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 SolrServer {
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 SolrServer {
}
/**
* @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;