|
|||||||||
| 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 | |
|---|---|
InputStream |
getInputStream(String location)
Get an input stream for the specified package (bits). |
SyncProgressWeight |
getSyncProgressWeight()
|
void |
initialize(Configuration configuration)
Initializes the adapter with the specified configuration. |
void |
shutdown()
Shutdown the adapter. |
void |
synchronizePackages(String repoName,
PackageSyncReport report,
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 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.
Exception - On errors.public void shutdown()
shutdown in interface ContentProvider
public InputStream getInputStream(String location)
throws Exception
getInputStream in interface PackageSourcelocation - The location relative to the baseurl.
Exception - On all errors.
public void synchronizePackages(String repoName,
PackageSyncReport report,
Collection<ContentProviderPackageDetails> existingPackages)
throws SyncException,
InterruptedException
synchronizePackages in interface PackageSourcerepoName - report - A report to fill in.existingPackages - A collection of package specifications already in inventory.
Exception - On all errors.
SyncException
InterruptedException
public void testConnection()
throws Exception
testConnection in interface ContentProviderException - When connection is not functional for any reason.public SyncProgressWeight getSyncProgressWeight()
getSyncProgressWeight in interface ContentProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||