|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.yum.RepoProvider
public class RepoProvider
The RepoSource provides a content source for synchronizing content contained with a yum repo.
| Constructor Summary | |
|---|---|
RepoProvider()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream(java.lang.String location)
Get an input stream for the specified package (bits). |
void |
initialize(Configuration configuration)
Initializes the adapter with the specified configuration. |
void |
shutdown()
Shutdown the adapter. |
void |
synchronizePackages(java.lang.String repoName,
PackageSyncReport report,
java.util.Collection<ContentProviderPackageDetails> existingPackages)
Synchronizes the packages contained within the yum repo. |
void |
testConnection()
Test's the adapter's connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepoProvider()
| Method Detail |
|---|
public void initialize(Configuration configuration)
throws java.lang.Exception
| path | A file system root directory or mount point |
| url | A base URL for a yum repo |
initialize in interface ContentProviderconfiguration - The adapter's configuration propeties.
java.lang.Exception - On errors.public void shutdown()
shutdown in interface ContentProvider
public java.io.InputStream getInputStream(java.lang.String location)
throws java.lang.Exception
getInputStream in interface PackageSourcelocation - The location relative to the baseurl.
java.lang.Exception - On all errors.
public void synchronizePackages(java.lang.String repoName,
PackageSyncReport report,
java.util.Collection<ContentProviderPackageDetails> existingPackages)
throws java.lang.Exception
synchronizePackages in interface PackageSourcerepoName - report - A report to fill in.existingPackages - A collection of package specifications already in inventory.
java.lang.Exception - On all errors.
public void testConnection()
throws java.lang.Exception
testConnection in interface ContentProviderjava.lang.Exception - When connection is not functional for any reason.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||