|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DistributionSource
Indicates a content source has the capability to provide distributions into the server. Distribution synchronization will be done through the calls defined in this interface.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 distros
Exception - if the source is unable to perform the synchronization, for instance if the external
source cannot be connected to.
SyncException
InterruptedException
InputStream getInputStream(String location)
throws Exception
location - The location of the distribution.
Exception - if failed to obtain the stream to the remote distribution data
String getDistFileRemoteLocation(String repoName,
String label,
String relativeFilename)
repoName - Name of repositorylabel - Distribution LabelrelativeFilename - relative path of file to fetch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||