|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.yum.Repo
public class Repo
The Repo is a proxy for a local or remote yum repository.
| Constructor Summary | |
|---|---|
Repo(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
Constructor. |
|
| Method Summary | |
|---|---|
void |
connect()
Connect to the yum repo. |
void |
disconnect()
Disconnect and reset object. |
List<ContentProviderPackageDetails> |
getPackageDetails()
Get a list of PackageDetails for all packages contained with the yum repo. |
PackageDetails |
getPackageDetails(String pkgname)
Get a PackageDetails for the specified package by name. |
org.jdom.Element |
getPackageMetadata(String pkgname)
Get the metadata entry contained within the primary.xml for the specified package by name. |
String |
getPackageMetadataString(String pkgname)
Get a string representation of metadata entry contained within the primary.xml for the specified package by name. |
InputStream |
openPackageStream(String pkgname)
Open and return an input stream for the specified package (bit) by name. |
String |
packageLocation(String pkgname)
Get the location (href) of the specified package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Repo(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
reader - An initialized repo reader.| Method Detail |
|---|
public void connect()
throws Exception
Exception - On connection error.public void disconnect()
public String getPackageMetadataString(String pkgname)
throws Exception
pkgname - A fully qualified package name.
Exception - On all errors.
public org.jdom.Element getPackageMetadata(String pkgname)
throws Exception
pkgname - A fully qualified package name.
Exception - On all errors.
public List<ContentProviderPackageDetails> getPackageDetails()
throws Exception
PackageDetails for all packages contained with the yum repo.
Exception - On all errors.
public PackageDetails getPackageDetails(String pkgname)
throws Exception
PackageDetails for the specified package by name.
pkgname - A fully qualified package name.
Exception - On all errors.
public InputStream openPackageStream(String pkgname)
throws Exception
pkgname - A fully qualified package name.
Exception - On all erorrs.
public String packageLocation(String pkgname)
throws Exception
pkgname - A fully qualified package name.
Exception - On all errors.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||