Apache Solr open-source search software
SOLR-6895: Remove SolrServer classes from trunk
Alan Woodward4a6d85790a19
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex fb9e4736253..067e1d7ed88 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -37,7 +37,8 @@ System RequirementsUpgrading from Solr 5.x-----------------------* N/A+* The deprecated SolrServer and subclasses have been removed, use SolrClient+ instead.Detailed Change List----------------------@@ -47,6 +48,8 @@ Other Changes* SOLR-6127: Improve example docs, using films data (Varun Thacker via ehatcher)+* SOLR-6895: Deprecated SolrServer classes have been removed (Alan Woodward,+ Erik Hatcher)================== 5.0.0 ==================diff --git a/solr/contrib/morphlines-core/src/java/org/apache/solr/morphlines/solr/SolrServerDocumentLoader.java b/solr/contrib/morphlines-core/src/java/org/apache/solr/morphlines/solr/SolrServerDocumentLoader.javadeleted file mode 100644index dc91b29cb4d..00000000000--- a/solr/contrib/morphlines-core/src/java/org/apache/solr/morphlines/solr/SolrServerDocumentLoader.java+++ /dev/null@@ -1,32 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.morphlines.solr;--import org.apache.solr.client.solrj.SolrClient;--/**- * @deprecated Use {@link org.apache.solr.morphlines.solr.SolrClientDocumentLoader}- */-@Deprecated-public class SolrServerDocumentLoader extends SolrClientDocumentLoader {-- public SolrServerDocumentLoader(SolrClient client, int batchSize) {- super(client, batchSize);- }--}diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrServer.javadeleted file mode 100644index 0238214793e..00000000000--- a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrServer.java+++ /dev/null@@ -1,25 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.client.solrj;--/**- * @deprecated Use {@link org.apache.solr.client.solrj.SolrClient}- */-@Deprecated-public abstract class SolrServer extends SolrClient {-}diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.javadeleted file mode 100644index 4e2a2e7ed81..00000000000--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java+++ /dev/null@@ -1,61 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.client.solrj.impl;--import org.apache.http.client.HttpClient;--import java.util.Collection;--/**- * @deprecated Use {@link org.apache.solr.client.solrj.impl.CloudSolrClient}- */-@Deprecated-public class CloudSolrServer extends CloudSolrClient {-- public CloudSolrServer(String zkHost) {- super(zkHost);- }-- public CloudSolrServer(String zkHost, HttpClient httpClient) {- super(zkHost, httpClient);- }-- public CloudSolrServer(Collection<String> zkHosts, String chroot) {- super(zkHosts, chroot);- }-- public CloudSolrServer(Collection<String> zkHosts, String chroot, HttpClient httpClient) {- super(zkHosts, chroot, httpClient);- }-- public CloudSolrServer(String zkHost, boolean updatesToLeaders) {- super(zkHost, updatesToLeaders);- }-- public CloudSolrServer(String zkHost, boolean updatesToLeaders, HttpClient httpClient) {- super(zkHost, updatesToLeaders, httpClient);- }-- public CloudSolrServer(String zkHost, LBHttpSolrClient lbClient) {- super(zkHost, lbClient);- }-- public CloudSolrServer(String zkHost, LBHttpSolrClient lbClient, boolean updatesToLeaders) {- super(zkHost, lbClient, updatesToLeaders);- }-}diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.javadeleted file mode 100644index 9ace82ad9b9..00000000000--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServer.java+++ /dev/null@@ -1,46 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.client.solrj.impl;--import org.apache.http.client.HttpClient;--import java.util.concurrent.ExecutorService;--/**- * @deprecated Use {@link org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient}- */-@Deprecated-public class ConcurrentUpdateSolrServer extends ConcurrentUpdateSolrClient {-- public ConcurrentUpdateSolrServer(String solrServerUrl, int queueSize, int threadCount) {- super(solrServerUrl, queueSize, threadCount);- }-- public ConcurrentUpdateSolrServer(String solrServerUrl, HttpClient client, int queueSize, int threadCount) {- super(solrServerUrl, client, queueSize, threadCount);- }-- public ConcurrentUpdateSolrServer(String solrServerUrl, HttpClient client, int queueSize, int threadCount, ExecutorService es) {- super(solrServerUrl, client, queueSize, threadCount, es);- }-- public ConcurrentUpdateSolrServer(String solrServerUrl, HttpClient client, int queueSize, int threadCount, ExecutorService es, boolean streamDeletes) {- super(solrServerUrl, client, queueSize, threadCount, es, streamDeletes);- }--}diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.javadeleted file mode 100644index ef5d439f941..00000000000--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java+++ /dev/null@@ -1,41 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.client.solrj.impl;--import org.apache.http.client.HttpClient;-import org.apache.solr.client.solrj.ResponseParser;--/**- * @deprecated Use {@link org.apache.solr.client.solrj.impl.HttpSolrClient}- */-@Deprecated-public class HttpSolrServer extends HttpSolrClient {-- public HttpSolrServer(String baseURL) {- super(baseURL);- }-- public HttpSolrServer(String baseURL, HttpClient client) {- super(baseURL, client);- }-- public HttpSolrServer(String baseURL, HttpClient client, ResponseParser parser) {- super(baseURL, client, parser);- }--}diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.javadeleted file mode 100644index ee28241637f..00000000000--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java+++ /dev/null@@ -1,43 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--package org.apache.solr.client.solrj.impl;--import org.apache.http.client.HttpClient;-import org.apache.solr.client.solrj.ResponseParser;--import java.net.MalformedURLException;--/**- * @deprecated Use {@link org.apache.solr.client.solrj.impl.LBHttpSolrClient}- */-@Deprecated-public class LBHttpSolrServer extends LBHttpSolrClient {-- public LBHttpSolrServer(String... solrServerUrls) throws MalformedURLException {- super(solrServerUrls);- }-- public LBHttpSolrServer(HttpClient httpClient, String... solrServerUrl) {- super(httpClient, solrServerUrl);- }-- public LBHttpSolrServer(HttpClient httpClient, ResponseParser parser, String... solrServerUrl) {- super(httpClient, parser, solrServerUrl);- }--}