Package org.apache.solr.packagemanager
Class DefaultPackageRepository
- java.lang.Object
-
- org.apache.solr.packagemanager.PackageRepository
-
- org.apache.solr.packagemanager.DefaultPackageRepository
-
public class DefaultPackageRepository extends PackageRepository
This is a serializable bean (for the JSON that is stored in /repository.json) representing a repository of Solr packages. Supports standard repositories based on a webservice.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.packagemanager.PackageRepository
name, repositoryURL
-
-
Constructor Summary
Constructors Constructor Description DefaultPackageRepository()
DefaultPackageRepository(String repositoryName, String repositoryURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
download(String artifactName)
Provides a method to download an artifact from this repository.SolrPackage
getPackage(String packageName)
Map<String,SolrPackage>
getPackages()
Returns a map of package name toSolrPackage
s.boolean
hasPackage(String packageName)
void
refresh()
-
-
-
Method Detail
-
refresh
public void refresh()
- Specified by:
refresh
in classPackageRepository
-
getPackages
public Map<String,SolrPackage> getPackages()
Description copied from class:PackageRepository
Returns a map of package name toSolrPackage
s.- Specified by:
getPackages
in classPackageRepository
-
getPackage
public SolrPackage getPackage(String packageName)
- Specified by:
getPackage
in classPackageRepository
-
hasPackage
public boolean hasPackage(String packageName)
- Specified by:
hasPackage
in classPackageRepository
-
download
public Path download(String artifactName) throws org.apache.solr.common.SolrException, IOException
Description copied from class:PackageRepository
Provides a method to download an artifact from this repository.- Specified by:
download
in classPackageRepository
- Throws:
org.apache.solr.common.SolrException
IOException
-
-