public interface DistributionSource
| Modifier and Type | Method and Description |
|---|---|
String |
getDistFileRemoteLocation(String repoName,
String label,
String relativeFilename) |
InputStream |
getInputStream(String location)
Get an input stream for the specified distribution.
|
void |
synchronizeDistribution(String repoName,
DistributionSyncReport report,
Collection<DistributionDetails> existingDistros)
Requests that this distribution source perform a synchronization with its external repository.
|
void synchronizeDistribution(String repoName, DistributionSyncReport report, Collection<DistributionDetails> existingDistros) throws SyncException, InterruptedException
repoName - repo name used to look up distributionsreport - used to accumulate the collection of distrosException - if the source is unable to perform the synchronization, for instance if the external
source cannot be connected to.SyncExceptionInterruptedExceptionInputStream getInputStream(String location) throws Exception
location - The location of the distribution.Exception - if failed to obtain the stream to the remote distribution dataString getDistFileRemoteLocation(String repoName, String label, String relativeFilename)
repoName - Name of repositorylabel - Distribution LabelrelativeFilename - relative path of file to fetchCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.