NazerkeBS commented on a change in pull request #23:
URL: https://github.com/apache/solr/pull/23#discussion_r596823379
##########
File path: solr/core/src/java/org/apache/solr/core/ConfigSetService.java
##########
@@ -211,6 +215,73 @@ protected NamedList loadConfigSetFlags(CoreDescriptor cd,
SolrResourceLoader loa
*/
public abstract String configSetName(CoreDescriptor cd);
+ /**
+ * Check whether a config exists in Zookeeper
+ *
+ * @param configName the config to check existance on
+ * @return whether the config exists or not
+ * @throws IOException if an I/O error occurs
+ */
+ public abstract Boolean configExists(String configName) throws IOException;
+
+ /**
+ * Delete a config in ZooKeeper
+ *
+ * @param configName the config to delete
+ * @throws IOException if an I/O error occurs
+ */
+ public abstract void deleteConfigDir(String configName) throws IOException;
+
+ /**
+ * Copy a config in ZooKeeper
+ *
+ * @param fromConfig the config to copy from
+ * @param toConfig the config to copy to
+ * @throws IOException if an I/O error occurs
+ */
+ public abstract void copyConfigDir(String fromConfig, String toConfig)
throws IOException;
+
+ /**
+ * Copy a config in ZooKeeper
+ *
+ * @param fromConfig the config to copy from
+ * @param toConfig the config to copy to
+ * @param copiedToZkPaths should be an empty Set, will be filled in by
function
+ * with the paths that were actually copied to.
+ * @throws IOException if an I/O error occurs
+ */
+ public abstract void copyConfigDir(String fromConfig, String toConfig,
Set<String> copiedToZkPaths) throws IOException;
+
+ /**
+ * Upload files from a given path to a config in Zookeeper
+ *
+ * @param dir {@link java.nio.file.Path} to the files
+ * @param configName the name to give the config
+ * @throws IOException if an I/O error occurs or the path does not exist
+ */
+ public abstract void uploadConfigDir(Path dir, String configName) throws
IOException;
+
+ /**
+ * Upload matching files from a given path to a config in Zookeeper
+ *
+ * @param dir {@link java.nio.file.Path} to the files
+ * @param configName the name to give the config
+ * @param filenameExclusions files matching this pattern will not be uploaded
+ * @throws IOException if an I/O error occurs or the path does not exist
+ */
+ public abstract void uploadConfigDir(Path dir, String configName, Pattern
filenameExclusions) throws IOException;
Review comment:
Actually we always filter dot-files; so I removed this method
----------------------------------------------------------------
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:
[email protected]