public class Repo extends Object
| Constructor and Description |
|---|
Repo(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Repo(org.rhq.enterprise.server.plugins.yum.RepoReader reader)
reader - An initialized repo reader.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.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.