org.rhq.enterprise.server.plugins.rhnhosted
Class RHNProvider
java.lang.Object
org.rhq.enterprise.server.plugins.rhnhosted.RHNProvider
- All Implemented Interfaces:
- AdvisorySource, ContentProvider, DistributionSource, PackageSource, RepoSource
public class RHNProvider
- extends Object
- implements ContentProvider, PackageSource, RepoSource, DistributionSource, AdvisorySource
- Author:
- pkilambi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RHNProvider
public RHNProvider()
initialize
public void initialize(Configuration configuration)
throws Exception
- Initializes the adapter with the specified configuration.
Expects one of the following properties:
| location |
RHN Hosted server URL |
| certificate |
A certificate for authentication and subscription validation. |
- Specified by:
initialize in interface ContentProvider
- Parameters:
configuration - The adapter's configuration propeties.
- Throws:
Exception - On errors.
shutdown
public void shutdown()
- Specified by:
shutdown in interface ContentProvider
getInputStream
public InputStream getInputStream(String location)
throws Exception
- Specified by:
getInputStream in interface DistributionSource- Specified by:
getInputStream in interface PackageSource
- Throws:
Exception
synchronizePackages
public void synchronizePackages(String repoName,
PackageSyncReport report,
Collection<ContentProviderPackageDetails> existingPackages)
throws SyncException,
InterruptedException
- Specified by:
synchronizePackages in interface PackageSource
- Throws:
SyncException
InterruptedException
synchronizeAdvisory
public void synchronizeAdvisory(String repoName,
AdvisorySyncReport report,
Collection<AdvisoryDetails> existingAdvisory)
throws SyncException,
InterruptedException
- Specified by:
synchronizeAdvisory in interface AdvisorySource
- Throws:
SyncException
InterruptedException
synchronizeDistribution
public void synchronizeDistribution(String repoName,
DistributionSyncReport report,
Collection<DistributionDetails> existingDistros)
throws SyncException
- Specified by:
synchronizeDistribution in interface DistributionSource
- Throws:
SyncException
testConnection
public void testConnection()
throws Exception
- Specified by:
testConnection in interface ContentProvider
- Throws:
Exception
importRepos
public RepoImportReport importRepos()
throws Exception
- Specified by:
importRepos in interface RepoSource
- Throws:
Exception
getDistFileRemoteLocation
public String getDistFileRemoteLocation(String repoName,
String label,
String relativeFilename)
- Specified by:
getDistFileRemoteLocation in interface DistributionSource
getSyncProgressWeight
public SyncProgressWeight getSyncProgressWeight()
- Specified by:
getSyncProgressWeight in interface ContentProvider
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.