lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucene-solr] dsmiley commented on a change in pull request #994: SOLR-13662: Package Manager (CLI)
Date Tue, 05 Nov 2019 05:21:43 GMT
dsmiley commented on a change in pull request #994: SOLR-13662: Package Manager (CLI)
URL: https://github.com/apache/lucene-solr/pull/994#discussion_r342377130
 
 

 ##########
 File path: solr/core/src/java/org/apache/solr/packagemanager/SolrPackageManager.java
 ##########
 @@ -0,0 +1,259 @@
+package org.apache.solr.packagemanager;
+
+import java.io.Closeable;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.solr.client.solrj.SolrClient;
+import org.apache.solr.client.solrj.impl.HttpSolrClient;
+import org.apache.solr.common.SolrException;
+import org.apache.solr.common.SolrException.ErrorCode;
+import org.apache.solr.common.cloud.SolrZkClient;
+import org.apache.solr.packagemanager.SolrPackage.Command;
+import org.apache.solr.packagemanager.SolrPackage.Metadata;
+import org.apache.solr.packagemanager.SolrPackage.Plugin;
+import org.apache.solr.util.SolrCLI;
+
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.jayway.jsonpath.JsonPath;
+
+public class SolrPackageManager implements Closeable {
+
+  final String solrBaseUrl;
+  final SolrClient solrClient;
+
+  final SolrZkClient zkClient;
+  public SolrPackageManager(String solrBaseUrl, String zkHost) {
+    this.solrBaseUrl = solrBaseUrl;
+    this.solrClient = new HttpSolrClient.Builder(solrBaseUrl).build();
+    this.zkClient = new SolrZkClient(zkHost, 30000);
+    System.out.println("Done initializing a zkClient instance...");
+  }
+
+  Map<String, List<SolrPackageInstance>> packages = null;
+
+  Metadata fetchMetadata(String manifestFilePath) throws MalformedURLException, IOException
{
 
 Review comment:
   If manifestFilePath must start with a '/', this should be validated and documented in a
javadoc

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Mime
View raw message