public class RepositoryManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
systemVersion |
Constructor and Description |
---|
RepositoryManager(HttpSolrClient solrClient,
PackageManager packageManager) |
Modifier and Type | Method and Description |
---|---|
void |
addRepository(String name,
String uri)
Add a repository to Solr
|
SolrPackage.SolrPackageRelease |
getLastPackageRelease(String packageName) |
List<SolrPackage> |
getPackages() |
Map<String,SolrPackage> |
getPackagesMap()
Get a map of package name to
SolrPackage objects |
List<PackageRepository> |
getRepositories()
List of added repositories
|
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?
|
void |
install(String packageName,
String version)
Install a version of the package.
|
public static final String systemVersion
public RepositoryManager(HttpSolrClient solrClient, PackageManager packageManager)
public List<SolrPackage> getPackages()
public Map<String,SolrPackage> getPackagesMap()
SolrPackage
objectspublic List<PackageRepository> getRepositories()
public void addRepository(String name, String uri) throws org.apache.zookeeper.KeeperException, InterruptedException, MalformedURLException, IOException
org.apache.zookeeper.KeeperException
InterruptedException
MalformedURLException
IOException
public SolrPackage.SolrPackageRelease getLastPackageRelease(String packageName)
public boolean hasPackageUpdate(String packageName)
public void install(String packageName, String version) throws SolrException
PackagePluginHolder.LATEST
version of this package and got auto-updated.SolrException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.