Class RepositoryManager

  • public class RepositoryManager
    extends Object
    Handles most of the management of repositories and packages present in external repositories.
    • Constructor Detail

      • RepositoryManager

        public RepositoryManager​(org.apache.solr.client.solrj.SolrClient solrClient,
                                 PackageManager packageManager)
    • Method Detail

      • hasPackageUpdate

        public boolean hasPackageUpdate​(String packageName)
        Is there a version of the package available in the repositories that is more latest than our latest installed version of the package?
      • install

        public boolean install​(String packageName,
                               String version)
                        throws org.apache.solr.common.SolrException
        Install a version of the package. Also, run verify commands in case some collection was using SolrPackageLoader.LATEST version of this package and got auto-updated.