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 |
addKey(byte[] key,
String destinationKeyFilename) |
void |
addRepository(String repoName,
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?
|
boolean |
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 repoName, String uri) throws Exception
Exception
public void addKey(byte[] key, String destinationKeyFilename) throws Exception
Exception
public SolrPackage.SolrPackageRelease getLastPackageRelease(String packageName)
public boolean hasPackageUpdate(String packageName)
public boolean install(String packageName, String version) throws SolrException
PackagePluginHolder.LATEST
version of this package and got auto-updated.SolrException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.