|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DistributionSource
Indicates a content provider has the capability to provide distributions into the server. Distribution synchronization will be done through the calls defined in this interface.
| Method Summary | |
|---|---|
java.lang.String |
getDistFileRemoteLocation(java.lang.String repoName,
java.lang.String label,
java.lang.String relativeFilename)
|
java.io.InputStream |
getInputStream(java.lang.String location)
Get an input stream for the specified distribution. |
void |
synchronizeDistribution(java.lang.String repoName,
DistributionSyncReport report,
java.util.Collection<DistributionDetails> existingDistros)
Requests that this distribution source perform a synchronization with its external repository. |
| Method Detail |
|---|
void synchronizeDistribution(java.lang.String repoName,
DistributionSyncReport report,
java.util.Collection<DistributionDetails> existingDistros)
throws java.lang.Exception
repoName - repo name used to look up distributionsreport - used to accumulate the collection of distros
java.lang.Exception - if the source is unable to perform the synchronization, for instance if the external
source cannot be connected to.
java.io.InputStream getInputStream(java.lang.String location)
throws java.lang.Exception
location - The location of the distribution.
java.lang.Exception - if failed to obtain the stream to the remote distribution data
java.lang.String getDistFileRemoteLocation(java.lang.String repoName,
java.lang.String label,
java.lang.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 | |||||||||